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
99e1ec8c
authored
2021-12-22 10:17:16 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
2a430194
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
src/apps/doc/consts.py
src/apps/doc/management/commands/folder_dda_process.py
src/apps/doc/management/commands/folder_ltgt_process.py
src/apps/doc/management/commands/folder_ocr_process.py
src/apps/doc/management/commands/folder_wsc_process.py
src/apps/doc/models.py
src/apps/doc/consts.py
View file @
99e1ec8
...
...
@@ -1757,7 +1757,7 @@ JYPZ_COMPARE_LOGIC = {
'vehicleTransactionAmount'
:
(
'price'
,
'se_amount_compare'
,
{},
'二手车凭证购买方交易价格与系统车辆价格不一致'
),
'customerName'
:
(
'buyer_name'
,
'se_name_compare'
,
{
'is_passport'
:
True
},
'二手车凭证购买方姓名与系统主借人姓名不一致'
),
'idNum'
:
(
'buyer_id'
,
'se_contain_compare_2'
,
{},
'二手车凭证购买方证件号与系统主借人证件号不一致'
),
'date'
:
(
'date'
,
'se_date_compare_2'
,
{
},
'二手车凭证购买方交易价格
早于submissionDate'
),
'date'
:
(
'date'
,
'se_date_compare_2'
,
{
'three_month'
:
True
},
'二手车凭证交易日期
早于submissionDate'
),
}
HMH_COMPARE_LOGIC
=
{
...
...
src/apps/doc/management/commands/folder_dda_process.py
View file @
99e1ec8
...
...
@@ -400,7 +400,7 @@ class Command(BaseCommand, LoggerMixin):
self
.
folder_log
.
info
(
'{0} [file end] [path={1}]'
.
format
(
self
.
log_base
,
path
))
else
:
result
=
None
self
.
folder_log
.
info
(
'{0} [path is dir] [path={1}]'
.
format
(
self
.
log_base
,
input_dir
))
self
.
folder_log
.
info
(
'{0} [path is dir] [path={1}]'
.
format
(
self
.
log_base
,
path
))
failed_path
=
os
.
path
.
join
(
failed_output_dir
,
'{0}_{1}'
.
format
(
time
.
time
(),
name
))
shutil
.
move
(
path
,
failed_path
)
except
OSError
:
...
...
src/apps/doc/management/commands/folder_ltgt_process.py
View file @
99e1ec8
...
...
@@ -638,7 +638,7 @@ class Command(BaseCommand, LoggerMixin):
self
.
folder_log
.
info
(
'{0} [file end] [path={1}]'
.
format
(
self
.
log_base
,
path
))
else
:
result
=
None
self
.
folder_log
.
info
(
'{0} [path is dir] [path={1}]'
.
format
(
self
.
log_base
,
input_dir
))
self
.
folder_log
.
info
(
'{0} [path is dir] [path={1}]'
.
format
(
self
.
log_base
,
path
))
failed_path
=
os
.
path
.
join
(
failed_output_dir
,
'{0}_{1}'
.
format
(
time
.
time
(),
name
))
shutil
.
move
(
path
,
failed_path
)
except
OSError
:
...
...
src/apps/doc/management/commands/folder_ocr_process.py
View file @
99e1ec8
...
...
@@ -308,7 +308,7 @@ class Command(BaseCommand, LoggerMixin):
self
.
img_process
(
name
,
path
,
classify
,
wb_output_dir
,
img_output_dir
,
pdf_output_dir
)
self
.
folder_log
.
info
(
'{0} [file end] [path={1}]'
.
format
(
self
.
log_base
,
path
))
else
:
self
.
folder_log
.
info
(
'{0} [path is dir] [path={1}]'
.
format
(
self
.
log_base
,
input_dir
))
self
.
folder_log
.
info
(
'{0} [path is dir] [path={1}]'
.
format
(
self
.
log_base
,
path
))
failed_path
=
os
.
path
.
join
(
failed_output_dir
,
'{0}_{1}'
.
format
(
time
.
time
(),
name
))
shutil
.
move
(
path
,
failed_path
)
except
OSError
:
...
...
src/apps/doc/management/commands/folder_wsc_process.py
View file @
99e1ec8
...
...
@@ -584,7 +584,7 @@ class Command(BaseCommand, LoggerMixin):
shutil
.
move
(
path
,
failed_path
)
self
.
folder_log
.
info
(
'{0} [file end] [path={1}]'
.
format
(
self
.
log_base
,
path
))
else
:
self
.
folder_log
.
info
(
'{0} [path is dir] [path={1}]'
.
format
(
self
.
log_base
,
input_dir
))
self
.
folder_log
.
info
(
'{0} [path is dir] [path={1}]'
.
format
(
self
.
log_base
,
path
))
failed_path
=
os
.
path
.
join
(
failed_output_dir
,
'{0}_{1}'
.
format
(
time
.
time
(),
name
))
shutil
.
move
(
path
,
failed_path
)
except
OSError
:
...
...
src/apps/doc/models.py
View file @
99e1ec8
...
...
@@ -819,10 +819,10 @@ class HILAutoSettlement(models.Model):
aa_type
=
models
.
CharField
(
null
=
True
,
max_length
=
64
,
verbose_name
=
"aa_type"
)
rpa_result
=
models
.
SmallIntegerField
(
null
=
True
,
verbose_name
=
"原因10数目"
)
rpa_1st_eye_tat
=
models
.
DecimalField
(
null
=
True
,
verbose_name
=
'rpa_1st_eye_tat'
)
rpa_2nd_eye_tat
=
models
.
DecimalField
(
null
=
True
,
verbose_name
=
'rpa_2nd_eye_tat'
)
rpa_3rd_eye_tat
=
models
.
DecimalField
(
null
=
True
,
verbose_name
=
'rpa_3rd_eye_tat'
)
rpa_total_tat
=
models
.
DecimalField
(
null
=
True
,
verbose_name
=
'rpa_total_tat'
)
rpa_1st_eye_tat
=
models
.
DecimalField
(
max_digits
=
18
,
decimal_places
=
0
,
null
=
True
,
verbose_name
=
'rpa_1st_eye_tat'
)
rpa_2nd_eye_tat
=
models
.
DecimalField
(
max_digits
=
18
,
decimal_places
=
0
,
null
=
True
,
verbose_name
=
'rpa_2nd_eye_tat'
)
rpa_3rd_eye_tat
=
models
.
DecimalField
(
max_digits
=
18
,
decimal_places
=
0
,
null
=
True
,
verbose_name
=
'rpa_3rd_eye_tat'
)
rpa_total_tat
=
models
.
DecimalField
(
max_digits
=
18
,
decimal_places
=
0
,
null
=
True
,
verbose_name
=
'rpa_total_tat'
)
rpa_activated_time
=
models
.
DateTimeField
(
null
=
True
,
verbose_name
=
'rpa_activated_time'
)
rpa_get_case_from_ocr_time
=
models
.
DateTimeField
(
null
=
True
,
verbose_name
=
'rpa_get_case_from_ocr_time'
)
rpa_get_case_from_oc_time
=
models
.
DateTimeField
(
null
=
True
,
verbose_name
=
'rpa_get_case_from_oc_time'
)
...
...
@@ -848,10 +848,10 @@ class AFCAutoSettlement(models.Model):
aa_type
=
models
.
CharField
(
null
=
True
,
max_length
=
64
,
verbose_name
=
"aa_type"
)
rpa_result
=
models
.
SmallIntegerField
(
null
=
True
,
verbose_name
=
"原因10数目"
)
rpa_1st_eye_tat
=
models
.
DecimalField
(
null
=
True
,
verbose_name
=
'rpa_1st_eye_tat'
)
rpa_2nd_eye_tat
=
models
.
DecimalField
(
null
=
True
,
verbose_name
=
'rpa_2nd_eye_tat'
)
rpa_3rd_eye_tat
=
models
.
DecimalField
(
null
=
True
,
verbose_name
=
'rpa_3rd_eye_tat'
)
rpa_total_tat
=
models
.
DecimalField
(
null
=
True
,
verbose_name
=
'rpa_total_tat'
)
rpa_1st_eye_tat
=
models
.
DecimalField
(
max_digits
=
18
,
decimal_places
=
0
,
null
=
True
,
verbose_name
=
'rpa_1st_eye_tat'
)
rpa_2nd_eye_tat
=
models
.
DecimalField
(
max_digits
=
18
,
decimal_places
=
0
,
null
=
True
,
verbose_name
=
'rpa_2nd_eye_tat'
)
rpa_3rd_eye_tat
=
models
.
DecimalField
(
max_digits
=
18
,
decimal_places
=
0
,
null
=
True
,
verbose_name
=
'rpa_3rd_eye_tat'
)
rpa_total_tat
=
models
.
DecimalField
(
max_digits
=
18
,
decimal_places
=
0
,
null
=
True
,
verbose_name
=
'rpa_total_tat'
)
rpa_activated_time
=
models
.
DateTimeField
(
null
=
True
,
verbose_name
=
'rpa_activated_time'
)
rpa_get_case_from_ocr_time
=
models
.
DateTimeField
(
null
=
True
,
verbose_name
=
'rpa_get_case_from_ocr_time'
)
rpa_get_case_from_oc_time
=
models
.
DateTimeField
(
null
=
True
,
verbose_name
=
'rpa_get_case_from_oc_time'
)
...
...
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