e673b600 by 周伟奇

add asp

1 parent bd0eb30d
......@@ -1695,7 +1695,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
# ASP -------------------------------------------------------------------------------------------------------
asp_list = []
gzs_status = consts.GZS_STATUS[1]
gzs_status = consts.GZS_STATUS[1] # N-No
gzs_list = [gzs_status]
gzs_price = '0.00'
is_asp = False
......@@ -1707,7 +1707,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
tmp_asp_name = asp_info.get('associatedServices')
if isinstance(tmp_asp_name, str) and len(tmp_asp_name) > 0:
if gzs_status == consts.GZS_STATUS[1] and tmp_asp_name.find(consts.GZS_NAME) != -1:
gzs_status = consts.GZS_STATUS[2]
gzs_status = consts.GZS_STATUS[2] # O-Only
gzs_price = asp_info.get('price', '0.00')
asp_list.append(
(
......@@ -1724,8 +1724,9 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
# fin_total_tmp = cms_info.get('associatedServices', {}).get('financed total', '0.00')
# fin_total = '0.00' if fin_total_tmp.strip() == '' else fin_total_tmp
for asp_name, _, asp_fin in asp_list:
if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1:
gzs_status = consts.GZS_STATUS[0]
if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1 and \
asp_name.find('机动车辆保险') == -1:
gzs_status = consts.GZS_STATUS[0] # Y-Yes
fin_total += float(asp_fin)
asp_list.append(
(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!