Commit 15516c78 by dong

fix20230308

parent d2431157
...@@ -1152,7 +1152,7 @@ def industry_enterprise(): ...@@ -1152,7 +1152,7 @@ def industry_enterprise():
"entype": i.entype, "entype": i.entype,
"address": i.address, "address": i.address,
"telephone": i.telephone, "telephone": i.telephone,
"hosts": i.hots, # "hosts": i.hots,
"high_new": '高新技术企业' if i.high_new == '1' else '', "high_new": '高新技术企业' if i.high_new == '1' else '',
"tbe": '科技型中小企业' if i.tbe == '1' else '', "tbe": '科技型中小企业' if i.tbe == '1' else '',
"quoted_company": '上市企业' if i.quoted_company == '1' else '', "quoted_company": '上市企业' if i.quoted_company == '1' else '',
...@@ -1167,7 +1167,7 @@ def industry_enterprise(): ...@@ -1167,7 +1167,7 @@ def industry_enterprise():
"patent": '有专利企业' if i.patent == '1' else '', "patent": '有专利企业' if i.patent == '1' else '',
"chain_master": '链主企业' if i.chain_master == '1' else '' "chain_master": '链主企业' if i.chain_master == '1' else ''
} for i in companys] } for i in companys]
df.sort(key=lambda s: s["hosts"], reverse=True) # df.sort(key=lambda s: s["hosts"], reverse=True)
data = {"size": size, "df": df} data = {"size": size, "df": df}
return jsonify(code=RET.OK, msg="获取成功", data=data) return jsonify(code=RET.OK, msg="获取成功", data=data)
......
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