Commit b476ba07 by dong

fix202302013

parent 430a5bb0
...@@ -1003,12 +1003,14 @@ def industry_enterprise(): ...@@ -1003,12 +1003,14 @@ def industry_enterprise():
Company.company_name.like('%{}%'.format(company_name)) if company_name else text(''), Company.company_name.like('%{}%'.format(company_name)) if company_name else text(''),
Company.status == status if status else text('') Company.status == status if status else text('')
) )
if industry_level == 1: # if industry_level == 1:
company = company.filter(Company.c_type == inid) # company = company.filter(Company.c_type == inid)
else: # else:
if product: if product:
company = company.filter(Company.product_all.like("%{}%".format(product))) company = company.filter(Company.product_all.like("%{}%".format(product)),
Company.c_type == inid
)
company = company.filter( company = company.filter(
Company.high_new == '1' if aptitude == '高新技术企业' else text(''), Company.high_new == '1' if aptitude == '高新技术企业' else text(''),
Company.tbe == '1' if aptitude == '科技型中小企业' else text(''), Company.tbe == '1' if aptitude == '科技型中小企业' 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