Commit 21cdf7e7 by 黄静

hj

parent 2e1dd0f1
...@@ -293,6 +293,14 @@ class Recom: ...@@ -293,6 +293,14 @@ class Recom:
surveyitem['productName'] = surveyitem['commodityName'] surveyitem['productName'] = surveyitem['commodityName']
surveyitem['typeName'] = "监测推荐" surveyitem['typeName'] = "监测推荐"
product_list.append(surveyitem) product_list.append(surveyitem)
if data['potential_product']:
potential = eval(data['potential_product'])
for potentialitem in potential:
potentialitem['typeCate'] = potentialitem['typeName']
potentialitem['productName'] = potentialitem['commodityName']
potentialitem['typeName'] = "潜在商机"
product_list.append(potentialitem)
print(product_list, "===========业务产品list1") print(product_list, "===========业务产品list1")
return product_list return product_list
...@@ -342,6 +350,16 @@ class Recom: ...@@ -342,6 +350,16 @@ class Recom:
surveyitem['productName'] = surveyitem['commodityName'] surveyitem['productName'] = surveyitem['commodityName']
surveyitem['typeName'] = "监测推荐" surveyitem['typeName'] = "监测推荐"
product_list.append(surveyitem) product_list.append(surveyitem)
if product_select == "潜在商机":
if data['potential_product']:
potential = eval(data['potential_product'])
for potentialitem in potential:
potentialitem['typeCate'] = potentialitem['typeName']
potentialitem['productName'] = potentialitem['commodityName']
potentialitem['typeName'] = "潜在商机"
product_list.append(potentialitem)
print(product_list, "===========业务产品list1") print(product_list, "===========业务产品list1")
return product_list,resaon return product_list,resaon
......
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