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 ...@@ -1695,7 +1695,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
1695 1695
1696 # ASP ------------------------------------------------------------------------------------------------------- 1696 # ASP -------------------------------------------------------------------------------------------------------
1697 asp_list = [] 1697 asp_list = []
1698 gzs_status = consts.GZS_STATUS[1] 1698 gzs_status = consts.GZS_STATUS[1] # N-No
1699 gzs_list = [gzs_status] 1699 gzs_list = [gzs_status]
1700 gzs_price = '0.00' 1700 gzs_price = '0.00'
1701 is_asp = False 1701 is_asp = False
...@@ -1707,7 +1707,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals ...@@ -1707,7 +1707,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
1707 tmp_asp_name = asp_info.get('associatedServices') 1707 tmp_asp_name = asp_info.get('associatedServices')
1708 if isinstance(tmp_asp_name, str) and len(tmp_asp_name) > 0: 1708 if isinstance(tmp_asp_name, str) and len(tmp_asp_name) > 0:
1709 if gzs_status == consts.GZS_STATUS[1] and tmp_asp_name.find(consts.GZS_NAME) != -1: 1709 if gzs_status == consts.GZS_STATUS[1] and tmp_asp_name.find(consts.GZS_NAME) != -1:
1710 gzs_status = consts.GZS_STATUS[2] 1710 gzs_status = consts.GZS_STATUS[2] # O-Only
1711 gzs_price = asp_info.get('price', '0.00') 1711 gzs_price = asp_info.get('price', '0.00')
1712 asp_list.append( 1712 asp_list.append(
1713 ( 1713 (
...@@ -1724,8 +1724,9 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals ...@@ -1724,8 +1724,9 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
1724 # fin_total_tmp = cms_info.get('associatedServices', {}).get('financed total', '0.00') 1724 # fin_total_tmp = cms_info.get('associatedServices', {}).get('financed total', '0.00')
1725 # fin_total = '0.00' if fin_total_tmp.strip() == '' else fin_total_tmp 1725 # fin_total = '0.00' if fin_total_tmp.strip() == '' else fin_total_tmp
1726 for asp_name, _, asp_fin in asp_list: 1726 for asp_name, _, asp_fin in asp_list:
1727 if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1: 1727 if gzs_status == consts.GZS_STATUS[2] and asp_name.find(consts.GZS_NAME) == -1 and \
1728 gzs_status = consts.GZS_STATUS[0] 1728 asp_name.find('机动车辆保险') == -1:
1729 gzs_status = consts.GZS_STATUS[0] # Y-Yes
1729 fin_total += float(asp_fin) 1730 fin_total += float(asp_fin)
1730 asp_list.append( 1731 asp_list.append(
1731 ( 1732 (
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!