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
84d79e06
authored
2022-03-07 11:05:28 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
orderList modify
1 parent
7d44ed22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
src/apps/doc/consts.py
src/celery_compare/tasks.py
src/apps/doc/consts.py
View file @
84d79e0
...
...
@@ -1781,6 +1781,7 @@ DDA_COMPARE_LOGIC = {
JYPZ_COMPARE_LOGIC
=
{
'vinNo'
:
(
'vin'
,
'se_common_compare'
,
{},
'二手车凭证车辆识别代号与系统车架号不一致'
),
'dealerName'
:
(
'authorized_dealer'
,
'se_common_compare'
,
{},
'二手车凭证经销商与系统经销商不一致'
),
'vehicleTransactionAmount'
:
(
'price'
,
'se_amount_compare'
,
{},
'二手车凭证购买方交易价格与系统车辆价格不一致'
),
'customerName'
:
(
'buyer_name'
,
'se_name_compare'
,
{
'is_passport'
:
True
},
'二手车凭证购买方姓名与系统主借人姓名不一致'
),
'idNum'
:
(
'buyer_id'
,
'se_contain_compare_2'
,
{},
'二手车凭证购买方证件号与系统主借人证件号不一致'
),
...
...
src/celery_compare/tasks.py
View file @
84d79e0
...
...
@@ -881,6 +881,9 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, auto=True):
main_role_info
=
{}
company_info_list
=
[]
dealer_name_list
=
cms_info
.
get
(
'dealerName'
,
''
)
.
split
()
dealer_name
=
''
if
len
(
dealer_name_list
)
==
0
else
dealer_name_list
[
-
1
]
# 个人信息证件---------------------------------------------------------------------------------------------------------
# province = cms_info.get('province', '')
for
individual_info
in
cms_info
.
get
(
'applicantInformation'
,
[]):
...
...
@@ -975,7 +978,7 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, auto=True):
if
vehicle_status
==
'New'
:
vehicle_field_input
.
append
((
'vinNo'
,
vin_no
))
vehicle_field_input
.
append
(
(
'dealer'
,
'、'
.
join
([
cms_info
.
get
(
'dealerName'
,
''
)
,
cms_info
.
get
(
'fapiaoIssuerDealer'
,
''
)])))
(
'dealer'
,
'、'
.
join
([
dealer_name
,
cms_info
.
get
(
'fapiaoIssuerDealer'
,
''
)])))
vehicle_field_input
.
append
((
'vehicleTransactionAmount'
,
amount
))
if
isinstance
(
company_info
,
tuple
):
...
...
@@ -1222,7 +1225,7 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, auto=True):
(
consts
.
SE_HIL_CON_1_FIELD
[
0
],
[
full_no
]
if
online_sign
else
full_no
),
(
consts
.
SE_HIL_CON_1_FIELD
[
1
],
full_no
),
(
consts
.
SE_HIL_CON_1_FIELD
[
2
],
vin_no
),
(
consts
.
SE_HIL_CON_1_FIELD
[
3
],
cms_info
.
get
(
'dealerName'
,
''
)
),
(
consts
.
SE_HIL_CON_1_FIELD
[
3
],
dealer_name
),
(
consts
.
SE_HIL_CON_1_FIELD
[
4
],
amount
),
(
consts
.
SE_HIL_CON_1_FIELD
[
5
],
str
(
cms_info
.
get
(
'financialInformation'
,
{})
.
get
(
'originationPrincipal'
,
'0.0'
))),
...
...
@@ -1261,7 +1264,7 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, auto=True):
(
consts
.
SE_HIL_CON_3_FIELD
[
0
],
[
full_no
]
if
online_sign
else
full_no
),
(
consts
.
SE_HIL_CON_3_FIELD
[
1
],
hmh_name
),
(
consts
.
SE_HIL_CON_3_FIELD
[
2
],
hmh_id
),
(
consts
.
SE_HIL_CON_3_FIELD
[
3
],
cms_info
.
get
(
'dealerName'
,
''
)
),
(
consts
.
SE_HIL_CON_3_FIELD
[
3
],
dealer_name
),
(
consts
.
SE_HIL_CON_3_FIELD
[
4
],
full_no
),
(
consts
.
SE_HIL_CON_3_FIELD
[
5
],
hmh_name
),
(
consts
.
SE_HIL_CON_3_FIELD
[
6
],
hmh_id
),
...
...
@@ -1312,7 +1315,7 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, auto=True):
str
(
cms_info
.
get
(
'financialInformation'
,
{})
.
get
(
'associatedServicePrincipal'
,
'0.0'
))),
(
consts
.
SE_AFC_CON_FIELD
[
7
],
amount
),
(
consts
.
SE_AFC_CON_FIELD
[
8
],
vin_no
),
(
consts
.
SE_AFC_CON_FIELD
[
9
],
cms_info
.
get
(
'dealerName'
,
''
)
),
(
consts
.
SE_AFC_CON_FIELD
[
9
],
dealer_name
),
(
consts
.
SE_AFC_CON_FIELD
[
10
],
str
(
cms_info
.
get
(
'financialInformation'
,
{})
.
get
(
'originationPrincipal'
,
'0.0'
))),
(
consts
.
SE_AFC_CON_FIELD
[
11
],
vehicle_principal_str
),
...
...
@@ -1368,6 +1371,9 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
main_role_info
=
{}
company_info_list
=
[]
dealer_name_list
=
cms_info
.
get
(
'dealerName'
,
''
)
.
split
()
dealer_name
=
''
if
len
(
dealer_name_list
)
==
0
else
dealer_name_list
[
-
1
]
# 个人信息证件---------------------------------------------------------------------------------------------------------
# province = cms_info.get('province', '')
for
individual_info
in
cms_info
.
get
(
'applicantInformation'
,
[]):
...
...
@@ -1467,7 +1473,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
# 新车发票----------------------------------------------------------------------------------------------------------
if
vehicle_status
==
'New'
:
vehicle_field_input
.
append
((
'vinNo'
,
vin_no
))
vehicle_field_input
.
append
((
'dealer'
,
'、'
.
join
([
cms_info
.
get
(
'dealerName'
,
''
)
,
cms_info
.
get
(
'fapiaoIssuerDealer'
,
''
)])))
vehicle_field_input
.
append
((
'dealer'
,
'、'
.
join
([
dealer_name
,
cms_info
.
get
(
'fapiaoIssuerDealer'
,
''
)])))
vehicle_field_input
.
append
((
'vehicleTransactionAmount'
,
amount
))
if
isinstance
(
company_info
,
tuple
):
...
...
@@ -1513,6 +1519,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
gb34_field_input
.
append
((
consts
.
SE_GB_USED_FIELD
[
2
],
first_submission_date
))
vehicle_field_input
.
append
((
consts
.
SE_NEW_ADD_FIELD
[
2
],
first_submission_date
))
# vehicle_field_input.append((consts.SE_NEW_ADD_FIELD[3], consts.SE_STAMP_VALUE))
jypz_field_input
.
append
((
'dealerName'
,
dealer_name
))
jypz_field_input
.
append
((
'vinNo'
,
vin_no
))
jypz_field_input
.
append
((
'vehicleTransactionAmount'
,
amount
))
jypz_field_input
.
append
((
consts
.
SE_GB_USED_FIELD
[
-
1
],
first_submission_date
))
...
...
@@ -1712,7 +1719,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
(
consts
.
SE_HIL_CON_1_FIELD
[
0
],
[
full_no
]
if
online_sign
else
full_no
),
(
consts
.
SE_HIL_CON_1_FIELD
[
1
],
full_no
),
(
consts
.
SE_HIL_CON_1_FIELD
[
2
],
vin_no
),
(
consts
.
SE_HIL_CON_1_FIELD
[
3
],
cms_info
.
get
(
'dealerName'
,
''
)
),
(
consts
.
SE_HIL_CON_1_FIELD
[
3
],
dealer_name
),
(
consts
.
SE_HIL_CON_1_FIELD
[
4
],
amount
),
(
consts
.
SE_HIL_CON_1_FIELD
[
5
],
str
(
cms_info
.
get
(
'financialInformation'
,
{})
.
get
(
'originationPrincipal'
,
'0.0'
))),
(
consts
.
SE_HIL_CON_1_FIELD
[
6
],
str
(
cms_info
.
get
(
'terms'
,
'0'
))),
...
...
@@ -1750,7 +1757,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
(
consts
.
SE_HIL_CON_3_FIELD
[
0
],
[
full_no
]
if
online_sign
else
full_no
),
(
consts
.
SE_HIL_CON_3_FIELD
[
1
],
hmh_name
),
(
consts
.
SE_HIL_CON_3_FIELD
[
2
],
hmh_id
),
(
consts
.
SE_HIL_CON_3_FIELD
[
3
],
cms_info
.
get
(
'dealerName'
,
''
)
),
(
consts
.
SE_HIL_CON_3_FIELD
[
3
],
dealer_name
),
(
consts
.
SE_HIL_CON_3_FIELD
[
4
],
full_no
),
(
consts
.
SE_HIL_CON_3_FIELD
[
5
],
hmh_name
),
(
consts
.
SE_HIL_CON_3_FIELD
[
6
],
hmh_id
),
...
...
@@ -1799,7 +1806,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
(
consts
.
SE_AFC_CON_FIELD
[
6
],
str
(
cms_info
.
get
(
'financialInformation'
,
{})
.
get
(
'associatedServicePrincipal'
,
'0.0'
))),
(
consts
.
SE_AFC_CON_FIELD
[
7
],
amount
),
(
consts
.
SE_AFC_CON_FIELD
[
8
],
vin_no
),
(
consts
.
SE_AFC_CON_FIELD
[
9
],
cms_info
.
get
(
'dealerName'
,
''
)
),
(
consts
.
SE_AFC_CON_FIELD
[
9
],
dealer_name
),
(
consts
.
SE_AFC_CON_FIELD
[
10
],
str
(
cms_info
.
get
(
'financialInformation'
,
{})
.
get
(
'originationPrincipal'
,
'0.0'
))),
(
consts
.
SE_AFC_CON_FIELD
[
11
],
vehicle_principal_str
),
(
consts
.
SE_AFC_CON_FIELD
[
12
],
str
(
cms_info
.
get
(
'financialInformation'
,
{})
.
get
(
'associatedServicePrincipal'
,
'0.0'
))),
...
...
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