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
7890be8a
authored
4 years ago
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
22582da8
master
...
CHINARPA-4562
OCR-recognition-for-FSM-related-documents
feature/202506-monixiadan
feature/4058
feature/CHINAPRA-4447
feature/CHINARPA-3290-FSM-AUTO
feature/CHINARPA-3443
feature/CHINARPA-3523
feature/CHINARPA-3528
feature/CHINARPA-3529
feature/CHINARPA-3577
feature/CHINARPA-3786
feature/CHINARPA-3964
feature/CHINARPA-4137
feature/CHINARPA-4277
feature/CHINARPA-4302/all-pass
feature/CHINARPA-4341
feature/CHINARPA-4357
feature/CHINARPA-4358
feature/CHINARPA-4395
feature/CHINARPA-4495
feature/CHINARPA-4546
feature/CHINARPA-4623
feature/CHINARPA-4659
feature/CHINARPA-4660
feature/CHINARPA-4731
feature/CHINARPA-4846
feature/CHINARPA-4941
feature/CHINARPA-4942
feature/CHINARPA-4944
feature/CHINARPA-4962
feature/CHINARPA-5015
feature/CHINARPA-5075
feature/CHINARPA-5092
feature/CHINARPA-5117
feature/CHINARPA-5118
feature/CHINARPA-5131-5234
feature/CHINARPA-5153
feature/CHINARPA-5155
feature/CHINARPA-5296
feature/CHINARPA-5504
feature/CHINARPA-5619
feature/CHINARPA-5620-dzfp
feature/CHINARPA_5015_SQL
feature/KWOM_July
feature/SE
feature/SE2
feature/SE3
feature/add_log_20240924
feature/add_try_except
feature/admin
feature/admin2
feature/auto-flag
feature/e-bank
feature/enhancement-file-name-change
feature/f3
feature/filter-file
feature/fix_label_40_dydjhmh
feature/fsm-contract
feature/fsm-full
feature/hotfix_insurance
feature/mssql-encrypt
feature/new-pwd
feature/pdftoimg
feature/pentest
feature/pres
feature/pres-3034
feature/qrs
feature/report
feature/report2
feature/rpa
feature/sc
feature/seOct
feature/token
feature/uat-new
feature/uat-tmp
feature/uat-tmp-cms-yace
feature/uat-tmp-cy
feature/uat-tmp-wblog
feature/upgrade_cut_img
feature/weixin-bs
feature/weixin-bs-2
feature/zfb
feature/zip
feature_add_down_payment
feature_add_income_keywords_cy
feature_add_insurance_sec_page
fix/1118上线问题反馈
fix/1227
fix/2024-05-pen-test
fix/20240424
fix/hil_excel_sql
fix/id-card
fix/new_hil_contract
fix/report_ca
hotfix/2025-02
hotfix/2025-04
hotfix/2025-06
master-0117
ocr-Pre-Settlement
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
src/apps/doc/management/commands/dda_daily.py
src/apps/doc/management/commands/dda_daily.py
View file @
7890be8
...
...
@@ -5,7 +5,7 @@ from openpyxl import Workbook
from
django.core.management
import
BaseCommand
from
common.mixins
import
LoggerMixin
from
apps.doc.models
import
DDARecords
from
apps.doc
import
consts
from
settings
import
conf
class
Command
(
BaseCommand
,
LoggerMixin
):
...
...
@@ -42,7 +42,7 @@ class Command(BaseCommand, LoggerMixin):
(
'application_id'
,
'is_dda_found'
,
'is_id_found'
,
'is_bc_found'
,
'dda_found_time'
,
'id_found_time'
,
'bc_found_time'
,
'create_time'
)),
]
self
.
dda_dir
=
os
.
path
.
join
(
'SF5-CL-S-1'
,
'DDA'
)
self
.
dda_dir
=
os
.
path
.
join
(
conf
.
DATA_DIR
,
'HIL'
,
'SF5-CL-S-1'
,
'DDA'
)
self
.
excel_name_base
=
'DDA_Data'
# self.complete_dda_dir = os.path.join(self.dda_dir, 'complete')
# self.wanting_dda_dir = os.path.join(self.dda_dir, 'wanting')
...
...
@@ -73,7 +73,7 @@ class Command(BaseCommand, LoggerMixin):
do_month
=
True
if
next_date
.
day
==
1
else
False
wanting_querysets
=
None
excel_name
=
'{0}({1}).xlsx'
.
format
(
self
.
excel_name_base
,
target_date
)
excel_name
=
'{0}({1}).xlsx'
.
format
(
self
.
excel_name_base
,
date_str
)
excel_path
=
os
.
path
.
join
(
self
.
dda_dir
,
excel_name
)
wb
=
Workbook
()
...
...
@@ -109,9 +109,9 @@ class Command(BaseCommand, LoggerMixin):
)
ws
.
append
(
col_values
)
else
:
querysets
=
DDARecords
.
objects
.
filter
(
all_found
=
Tru
e
)
.
values
(
*
query_fields
)
querysets
=
DDARecords
.
objects
.
filter
(
all_found
=
Fals
e
)
.
values
(
*
query_fields
)
if
do_month
:
wanting_querysets
=
queryset
wanting_querysets
=
queryset
s
for
queryset
in
querysets
:
col_values
=
(
...
...
This diff is collapsed.
Click to expand it.
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