Commit edb51ccb by dong

fix20230705

parent 74e1f802
......@@ -302,7 +302,7 @@ def find_next():
return jsonify(code=RET.DATAERR, msg="参数不完整")
try:
if category == "1": # 查询企业的产品
url = "http://39.100.39.50:9200/jc_supply_chain/_search" # 产品对企业
url = "http://39.100.39.50:9200/jc_supply_chain1/_search" # 产品对企业
# 1、根据公司查询产品
body = body_by_companyName(name)
result_es = json.loads(requests.post(url=url, json=body).text)
......@@ -339,7 +339,7 @@ def find_next():
}
return jsonify(code=RET.OK, msg="获取成功", data=result)
elif category == "3": # 产品查询供应商
url = "http://39.100.39.50:9200/jc_supply_chain/_search"
url = "http://39.100.39.50:9200/jc_supply_chain1/_search"
body = body_by_products(name)
companys_return = json.loads(requests.post(url=url, json=body).text)
res = [i["_source"]["company_name"] for i in companys_return["hits"]["hits"]]
......@@ -369,7 +369,7 @@ def get_semic_map():
res = request.get_json()
company_name = res.get('company_name').strip()
c_type = res.get('c_type')
url = "http://39.100.39.50:9200/jc_supply_chain/_search" # 产品对企业
url = "http://39.100.39.50:9200/jc_supply_chain1/_search" # 产品对企业
# 1、根据公司查询产品
body = body_by_companyName(company_name)
result_es = json.loads(requests.post(url=url, json=body).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