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
bf482ece
authored
2021-11-18 18:30:54 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
bf9a6f86
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
src/apps/doc/consts.py
src/celery_compare/tasks.py
src/apps/doc/consts.py
View file @
bf482ec
...
...
@@ -1448,26 +1448,26 @@ SE_AFC_CON_FIELD = ['合同编号-每页', '所购车辆价格-小写-重要条
# '项目1', '用途总金额', '贷款本金', '附加产品融资贷款本金总金额', '购置税校验'
ROLE_LIST
=
[
(
'借款人签字及时间'
,
'Borrower'
,
0
,
0
,
True
),
(
'借款人姓名'
,
'Borrower'
,
0
,
0
,
True
),
(
'借款人证件号'
,
'Borrower'
,
0
,
2
,
True
),
(
'主借人签字'
,
'Borrower'
,
0
,
0
,
True
),
(
'主借人日期'
,
'Borrower'
,
0
,
'有'
,
True
),
(
'共借人姓名'
,
'Co-Borrower'
,
0
,
0
,
False
),
(
'共借人证件号'
,
'Co-Borrower'
,
0
,
2
,
False
),
(
'共借人签字'
,
'Co-Borrower'
,
0
,
0
,
False
),
(
'共借人日期'
,
'Co-Borrower'
,
0
,
'有'
,
False
),
(
'保证人姓名1'
,
'Guarantor'
,
0
,
0
,
False
),
(
'保证人证件号1'
,
'Guarantor'
,
0
,
2
,
False
),
(
'保证人签字1'
,
'Guarantor'
,
0
,
0
,
False
),
(
'保证人日期1'
,
'Guarantor'
,
0
,
'有'
,
False
),
(
'保证人姓名2'
,
'Guarantor'
,
1
,
0
,
False
),
(
'保证人证件号2'
,
'Guarantor'
,
1
,
2
,
False
),
(
'保证人签字2'
,
'Guarantor'
,
1
,
0
,
False
),
(
'保证人日期2'
,
'Guarantor'
,
1
,
'有'
,
False
),
(
'借款人签字及时间'
,
'Borrower'
,
0
,
0
,
True
,
True
),
(
'借款人姓名'
,
'Borrower'
,
0
,
0
,
True
,
True
),
(
'借款人证件号'
,
'Borrower'
,
0
,
2
,
True
,
True
),
(
'主借人签字'
,
'Borrower'
,
0
,
0
,
True
,
False
),
(
'主借人日期'
,
'Borrower'
,
0
,
'有'
,
True
,
False
),
(
'共借人姓名'
,
'Co-Borrower'
,
0
,
0
,
False
,
True
),
(
'共借人证件号'
,
'Co-Borrower'
,
0
,
2
,
False
,
True
),
(
'共借人签字'
,
'Co-Borrower'
,
0
,
0
,
False
,
False
),
(
'共借人日期'
,
'Co-Borrower'
,
0
,
'有'
,
False
,
False
),
(
'保证人姓名1'
,
'Guarantor'
,
0
,
0
,
False
,
True
),
(
'保证人证件号1'
,
'Guarantor'
,
0
,
2
,
False
,
True
),
(
'保证人签字1'
,
'Guarantor'
,
0
,
0
,
False
,
False
),
(
'保证人日期1'
,
'Guarantor'
,
0
,
'有'
,
False
,
False
),
(
'保证人姓名2'
,
'Guarantor'
,
1
,
0
,
False
,
True
),
(
'保证人证件号2'
,
'Guarantor'
,
1
,
2
,
False
,
True
),
(
'保证人签字2'
,
'Guarantor'
,
1
,
0
,
False
,
False
),
(
'保证人日期2'
,
'Guarantor'
,
1
,
'有'
,
False
,
False
),
]
GZS_NAME
=
'车辆购置税'
...
...
src/celery_compare/tasks.py
View file @
bf482ec
...
...
@@ -1165,7 +1165,10 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
# afc_contract_input.append((consts.SE_AFC_CON_FIELD[22], consts.SPLIT_STR.join(gzs_list)))
# '借款人签字及时间', 'Borrower', 0, 0, True
for
key
,
app_type
,
id_idx
,
field_idx
,
is_force
in
consts
.
ROLE_LIST
:
online_sign
=
cms_info
.
get
(
'contractSource'
,
'Online Sign'
)
==
'Online Sign'
for
key
,
app_type
,
id_idx
,
field_idx
,
is_force
,
e_write
in
consts
.
ROLE_LIST
:
if
not
e_write
and
not
online_sign
:
continue
is_find
=
False
if
app_type
in
main_role_info
:
if
len
(
main_role_info
[
app_type
])
>=
id_idx
+
1
:
...
...
@@ -1177,6 +1180,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
if
not
is_find
and
is_force
:
afc_contract_input
.
append
((
key
,
empty_str
))
if
online_sign
:
afc_contract_input
.
append
((
consts
.
SE_AFC_CON_FIELD
[
18
],
consts
.
SE_STAMP_VALUE
))
afc_contract_input
.
append
((
consts
.
SE_AFC_CON_FIELD
[
19
],
empty_str
))
...
...
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