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
95d4f773
authored
2024-08-02 17:05:13 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:fss logic
1 parent
f81cb90d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
src/apps/doc/consts.py
src/celery_compare/tasks.py
src/apps/doc/consts.py
View file @
95d4f77
...
...
@@ -1248,6 +1248,7 @@ FSM_CONTRACT_MSI_FIELD = 'fsm_msi_ocr'
FSM_CONTRACT_SC_FIELD
=
'fsm_sc_ocr'
FSM_CONTRACT_SC2_FIELD
=
'fsm_sc2_ocr'
FS_FIELD
=
'fs_ocr'
FSS_FIELD
=
'fss_ocr'
BS_CLASSIFY
=
10089
...
...
@@ -1507,6 +1508,7 @@ JDMPV_VALUE = ['-', '--', '0%', '0.00', '/', '0', '']
JYPZ_TYPE_1
=
[
'二手车交易凭证'
]
JYPZ_TYPE_2
=
[
'BMW官方认证二手车交易凭证'
,
'二手车交易凭证'
]
SE_FS_FIELD
=
[
'Hash值'
,
'公章'
,
'财年'
,
'资产负债表内容'
,
'利润表内容'
]
SE_FSS_FIELD
=
[
'公司名称'
,
'公章'
]
SE_BANK_FIELD
=
[
'accountNo'
,
'bankName'
]
SE_DDA_FIELD
=
[
'applicationId(1)'
,
'applicationId(2)'
,
'bankName'
,
'companyName'
,
'customerName'
,
'idNum'
,
'accountHolderName'
,
'accountNo'
]
...
...
@@ -2165,7 +2167,7 @@ HT_COMPARE_LOGIC = {
'无ASP产品'
:
(
'无ASP产品'
,
'se_self_compare_other_asp'
,
{},
GZS_REASON_1
),
}
# 格式:'excel字段名':('数据库字段名','比对逻辑','特殊处理可以忽略','比对不合格时的返回内容')
# 格式:'
xueao给的
excel字段名':('数据库字段名','比对逻辑','特殊处理可以忽略','比对不合格时的返回内容')
FS_COMPARE_LOGIC
=
{
'Hash值'
:
(
'code'
,
'hash_code_compare'
,
{},
'财报Hash值与系统不一致'
),
'公章'
:
(
'stamp'
,
'stamp_dict_compare'
,
{},
'财报无公章'
),
...
...
@@ -2174,6 +2176,11 @@ FS_COMPARE_LOGIC = {
'利润表内容'
:
(
'利润表内容'
,
'input_list_not_zero_compare'
,
{},
'财报利润表为空'
),
}
FSS_COMPARE_LOGIC
=
{
'公司名称'
:
(
'title'
,
'se_company_compare'
,
{},
'财报情况说明公司名称错误'
),
'公章'
:
(
'stamp'
,
'stamp_dict_compare'
,
{},
'财报情况说明无公章'
),
}
AFC_HT_DATE_FIELDS
=
[
'主借人日期'
,
'共借人日期'
,
'保证人日期1'
,
'保证人日期2'
]
# MVC_OCR_FIELD = 'mvc_ocr'
...
...
@@ -2203,6 +2210,7 @@ SE_COMPARE_FIELD = {
HIL_CONTRACT_2_EN
:
(
HIL_CONTRACT_2_FIELD
,
HIL_CONTRACT_2_COMPARE_LOGIC
,
False
),
HIL_CONTRACT_3_EN
:
(
HIL_CONTRACT_3_FIELD
,
HIL_CONTRACT_3_COMPARE_LOGIC
,
False
),
FS_EN
:
(
FS_FIELD
,
FS_COMPARE_LOGIC
,
False
),
FSS_EN
:
(
FSS_FIELD
,
FSS_COMPARE_LOGIC
,
False
),
}
SE_COMPARE_FIELD_AUTO
=
{
...
...
src/celery_compare/tasks.py
View file @
95d4f77
...
...
@@ -934,6 +934,7 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
is_cdfl_bo
=
False
# 车贷分离,主借
is_cdfl_co
=
False
# 车贷分离,共借
role_count
=
0
borrower_name
=
''
# province = cms_info.get('province', '')
for
individual_info
in
cms_info
.
get
(
'applicantInformation'
,
[]):
role_count
+=
1
...
...
@@ -958,6 +959,10 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
customersubType
=
individual_info
.
get
(
'customersubType'
,
''
)
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]
and
is_corporate
:
is_bo_corporate
=
True
# CHINARPA-4660 财报主借人姓名赋值
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]:
borrower_name
=
customer_name
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
...
...
@@ -1145,6 +1150,16 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
financial_statement_input
.
append
((
consts
.
SE_FS_FIELD
[
4
],
netProfit
))
financial_statement_info
[
consts
.
FS_EN
]
=
financial_statement_input
compare_info
[
'financialStatementInfo'
]
=
financial_statement_info
# 财报情况说明
financial_statement_supplementary_info
=
{}
financial_statement_supplementary_input
=
[]
need_fss
=
corporateFinancialInformation
.
get
(
'cashAndCashEquivalentAtEndOfPeriod'
,
''
)
==
0
if
need_fss
:
financial_statement_supplementary_input
.
append
((
consts
.
SE_FSS_FIELD
[
0
],
borrower_name
))
financial_statement_supplementary_input
.
append
((
consts
.
SE_FSS_FIELD
[
1
],
consts
.
SE_STAMP_VALUE
))
financial_statement_supplementary_info
[
consts
.
FSS_EN
]
=
financial_statement_supplementary_input
compare_info
[
'financialStatementSupplementaryInfo'
]
=
financial_statement_supplementary_info
# 银行卡-------------------------------------------------------------------------------------------------------
...
...
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