Commit 88ac23b4 by dong

fix20221210

parent 040110de
...@@ -896,14 +896,13 @@ def industry_enterprise(): ...@@ -896,14 +896,13 @@ def industry_enterprise():
try: try:
company = Company.query.filter( company = Company.query.filter(
Company.c_type == inid,
Company.city == "晋城市", Company.city == "晋城市",
Company.entype == entype if entype else text(''), Company.entype == entype if entype else text(''),
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 and product: if industry_level == 1:
company = company.filter(Company.c_name.like("%{}%".format(product))) company = company.filter(Company.c_type == inid)
else: else:
if product: if product:
......
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