Commit ead0533f by 黄静

hj

parent d735eb16
......@@ -20,19 +20,23 @@ def qualificationsInfo(platform_code,export_label, store_type_code, industry_one
brand_alone = []
industry_alone = []
qualifications_result = qualifications_info.selectQualifications(platform_code,export_label, store_type_code, industry_one_code,industry_two_code_list)
print('qualifications_result',qualifications_result)
if qualifications_result:
for row in qualifications_result:
print('rowrowrowrow',row)
qualification_type = row['qualification_type']
if qualification_type == '企业资质':
if row['qualification_comments'] not in base_alone:
base_alone.append(row['qualification_comments'])
if row['qualification_comments']:
base_dict = {}
# base_dict[]
base_dict["id"] = row['qualification_comments_code']
base_dict["name"] = row['qualification_comments']
base_dict["name"] = row['qualification_comments']
base_dict['submit_code'] = row['slave_one']
base_dict['slave_two'] = row['slave_two']
base_dict['isChoice'] = False
if base_dict:
base_list.append(base_dict)
......@@ -46,6 +50,8 @@ def qualificationsInfo(platform_code,export_label, store_type_code, industry_one
brand_dict = {}
brand_dict["id"] = row['qualification_comments_code']
brand_dict["name"] = row['qualification_comments']
brand_dict['submit_code'] = row['slave_one']
brand_dict['slave_two'] = row['slave_two']
brand_dict['isChoice'] = False
if brand_dict:
brand_list.append(brand_dict)
......@@ -59,7 +65,8 @@ def qualificationsInfo(platform_code,export_label, store_type_code, industry_one
industry_dict = {}
industry_dict["id"] = row['qualification_comments_code']
industry_dict["name"] = row['qualification_comments']
industry_dict['isChoice'] = False
industry_dict['submit_code'] = row['slave_one']
industry_dict['slave_two'] = row['slave_two']
if industry_dict:
industry_list.append(industry_dict)
data_dict['industry'] = industry_list
......
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