Commit de810d92 by dong

fix20230111

parent 5dfc0b92
......@@ -599,7 +599,7 @@ def industry_policy():
indu_policy = InduPolicy.query.filter(
InduPolicy.navigat.like("%{}%".format(name)),
InduPolicy.level == "区县",
InduPolicy.org == policy_type if policy_type != '全部' else text(''),
InduPolicy.district == policy_type if policy_type != '全部' else text(''),
InduPolicy.year == policy_year if policy_year else text(''),
InduPolicy.name.like('%{}%'.format(policy_name)))
size = indu_policy.count() # 分页总数
......@@ -609,7 +609,7 @@ def industry_policy():
indu_policy = InduPolicy.query.filter(
InduPolicy.navigat.like("%{}%".format(name)),
InduPolicy.level == "开发区",
InduPolicy.org == policy_type if policy_type != '全部' else text(''),
InduPolicy.district == policy_type if policy_type != '全部' else text(''),
InduPolicy.year == policy_year if policy_year else text(''),
InduPolicy.name.like('%{}%'.format(policy_name)))
size = indu_policy.count() # 分页总数
......@@ -620,6 +620,7 @@ def industry_policy():
InduPolicy.navigat.like("%{}%".format(name)),
# InduPolicy.level == "国家级",
InduPolicy.org == policy_type if policy_type != '全部' else text(''),
# InduPolicy.district == policy_type if policy_type != '全部' else text(''),
InduPolicy.year == policy_year if policy_year else text(''),
InduPolicy.name.like('%{}%'.format(policy_name))
)
......@@ -662,7 +663,7 @@ def industry_policy():
indu_policy = InduPolicy.query.filter(
InduPolicy.navigat.like("%{}%".format(name)),
InduPolicy.level == "区县",
InduPolicy.org == policy_type if policy_type != '全部' else text(''),
InduPolicy.district == policy_type if policy_type != '全部' else text(''),
InduPolicy.year == policy_year if policy_year else text(''),
InduPolicy.name.like('%{}%'.format(policy_name)))
size = indu_policy.count() # 分页总数
......@@ -672,7 +673,7 @@ def industry_policy():
indu_policy = InduPolicy.query.filter(
InduPolicy.navigat.like("%{}%".format(name)),
InduPolicy.level == "开发区",
InduPolicy.org == policy_type if policy_type != '全部' else text(''),
InduPolicy.district == policy_type if policy_type != '全部' else text(''),
InduPolicy.year == policy_year if policy_year else text(''),
InduPolicy.name.like('%{}%'.format(policy_name)))
size = indu_policy.count() # 分页总数
......
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