Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5b24219b
authored
2022-05-30 14:46:26 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
June SE part 1
1 parent
978980cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
5b24219
...
...
@@ -1104,7 +1104,8 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, auto=True):
compare_info
[
'bankInfo'
]
=
bank_info
# 银行流水 --------------------------------------------------------------------
if
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'aaType'
,
''
)
in
[
'CAA1'
,
'CAA2'
]:
if
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'aaType'
,
''
)
in
[
'CAA1'
,
'CAA2'
]
and
\
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'PolicyComments'
,
''
)
!=
'此申请无需提供流水'
:
date_timedelta
=
60
if
auto
else
90
bs_role_list
=
[]
for
applicant_type
in
consts
.
APPLICANT_TYPE_ORDER
[:
2
]:
...
...
@@ -1203,7 +1204,8 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, auto=True):
# 保单 -----------------------------------------------------------------------------------------------------------
# is_insurance = 0
fp_campaign
=
cms_info
.
get
(
'fpCampaign'
,
''
)
# fp_campaign = cms_info.get('fpCampaign', '')
fp_group
=
cms_info
.
get
(
'fpGroup'
,
''
)
# insurance_type = cms_info.get('insuranceDetails', {}).get('insuranceType', '')
# if insurance_type == 'Waive Insurance' and isinstance(insurance_price, str):
# is_insurance = 1
...
...
@@ -1289,7 +1291,7 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, auto=True):
contract_info
[
consts
.
HIL_CONTRACT_1_EN
]
=
hil_contract_1_input
# HIL合同 车辆处置协议 --------------------------------------------------------------------------------------
if
fp_
campaign
.
find
(
'Joy_Select'
)
!=
-
1
or
fp_campaign
.
find
(
'JoySelect'
)
!=
-
1
:
if
fp_
group
.
find
(
'Joy_Select'
)
!=
-
1
or
fp_group
.
find
(
'JoySelect'
)
!=
-
1
:
hil_contract_3_input
=
[
(
consts
.
SE_HIL_CON_3_FIELD
[
0
],
[
full_no
]
if
online_sign
else
full_no
),
(
consts
.
SE_HIL_CON_3_FIELD
[
1
],
main_name
),
...
...
@@ -1616,7 +1618,8 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
compare_info
[
'bankInfo'
]
=
bank_info
# 银行流水 --------------------------------------------------------------------
if
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'aaType'
,
''
)
in
[
'CAA1'
,
'CAA2'
]:
if
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'aaType'
,
''
)
in
[
'CAA1'
,
'CAA2'
]
and
\
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'PolicyComments'
,
''
)
!=
'此申请无需提供流水'
:
date_timedelta
=
60
if
auto
else
90
bs_role_list
=
[]
for
applicant_type
in
consts
.
APPLICANT_TYPE_ORDER
[:
2
]:
...
...
@@ -1716,6 +1719,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
# 保单 -----------------------------------------------------------------------------------------------------------
is_insurance
=
0
fp_campaign
=
cms_info
.
get
(
'fpCampaign'
,
''
)
fp_group
=
cms_info
.
get
(
'fpGroup'
,
''
)
insurance_type
=
cms_info
.
get
(
'insuranceDetails'
,
{})
.
get
(
'insuranceType'
,
''
)
if
insurance_type
==
'Waive Insurance'
and
isinstance
(
insurance_price
,
str
):
is_insurance
=
1
...
...
@@ -1801,7 +1805,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
contract_info
[
consts
.
HIL_CONTRACT_1_EN
]
=
hil_contract_1_input
# HIL合同 车辆处置协议 --------------------------------------------------------------------------------------
if
fp_
campaign
.
find
(
'Joy_Select'
)
!=
-
1
or
fp_campaign
.
find
(
'JoySelect'
)
!=
-
1
:
if
fp_
group
.
find
(
'Joy_Select'
)
!=
-
1
or
fp_group
.
find
(
'JoySelect'
)
!=
-
1
:
hil_contract_3_input
=
[
(
consts
.
SE_HIL_CON_3_FIELD
[
0
],
[
full_no
]
if
online_sign
else
full_no
),
(
consts
.
SE_HIL_CON_3_FIELD
[
1
],
main_name
),
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment