Commit d712e4c6 by dong

fix

parent a47879ed
...@@ -1224,19 +1224,22 @@ def radar_enums(): ...@@ -1224,19 +1224,22 @@ def radar_enums():
for indu_name in indu_obj_li: for indu_name in indu_obj_li:
# indu_name = indu_obj.industry_name # indu_name = indu_obj.industry_name
# print("正在查询【{}】的相关企业......".format(indu_name)) # print("正在查询【{}】的相关企业......".format(indu_name))
company1 = Enterprise.query.filter( # company1 = Enterprise.query.filter(
company1 = enterprise.filter(
Enterprise.c_type == inid, Enterprise.c_type == inid,
Enterprise.product_all.like("%{}%".format(indu_name)) Enterprise.product_all.like("%{}%".format(indu_name))
).all() ).all()
company += company1 company += company1
# print(company1) # print(company1)
company2 = Enterprise.query.filter( # company2 = Enterprise.query.filter(
company2 = enterprise.filter(
Enterprise.c_type1 == inid, Enterprise.c_type1 == inid,
Enterprise.product_all1.like("%{}%".format(indu_name)) Enterprise.product_all1.like("%{}%".format(indu_name))
).all() ).all()
company += company2 company += company2
# print(company2) # print(company2)
company3 = Enterprise.query.filter( # company3 = Enterprise.query.filter(
company3 = enterprise.filter(
Enterprise.c_type2 == inid, Enterprise.c_type2 == inid,
Enterprise.product_all2.like("%{}%".format(indu_name)) Enterprise.product_all2.like("%{}%".format(indu_name))
).all() ).all()
......
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