Commit aa1c1728 by dong

fix20221211

parent 184384d9
...@@ -484,13 +484,18 @@ def industry_policy(): ...@@ -484,13 +484,18 @@ def industry_policy():
try: try:
indu_policy = '' indu_policy = ''
size = '' size = ''
name_list = ''
name = Industry.query.filter_by(nid=inid).first().oname # 获取导航对应的真名 name = Industry.query.filter_by(nid=inid).first().oname # 获取导航对应的真名
if name == '光机电':
name_list = ["光通讯", "光学镜头", "硬质合金", "工业机器人"]
# name = '煤层气' # name = '煤层气'
print(name) print(name)
if industry_level == 1: if industry_level == 1:
if policy_level == 1: # 国家级 if policy_level == 1: # 国家级
indu_policy = InduPolicy.query.filter( 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.level == "国家",
InduPolicy.org == policy_type if policy_type != '全部' else text(''), InduPolicy.org == policy_type if policy_type != '全部' else text(''),
InduPolicy.year == policy_year if policy_year 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