Commit aa1c1728 by dong

fix20221211

parent 184384d9
......@@ -484,13 +484,18 @@ def industry_policy():
try:
indu_policy = ''
size = ''
name_list = ''
name = Industry.query.filter_by(nid=inid).first().oname # 获取导航对应的真名
if name == '光机电':
name_list = ["光通讯", "光学镜头", "硬质合金", "工业机器人"]
# name = '煤层气'
print(name)
if industry_level == 1:
if policy_level == 1: # 国家级
indu_policy = InduPolicy.query.filter(
InduPolicy.navigat.like("%{}%".format(name)),
InduPolicy.navigat.like("%{}%".format(name)) if name != '光机电' else text(''),
InduPolicy.navigat.in_(name_list) if name == '光机电' else text(''),
InduPolicy.level == "国家",
InduPolicy.org == policy_type if policy_type != '全部' else text(''),
InduPolicy.year == policy_year if policy_year else text(''),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment