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
75c57aa6
authored
2025-08-13 11:00:28 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:数控发票判断依据
1 parent
df94248b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
75c57aa
...
...
@@ -688,8 +688,8 @@ class UploadDocView(GenericView, DocHandler):
classify_1
=
12
self
.
running_log
.
info
(
'[weixin bs process] [doc_id={0}]'
.
format
(
doc
.
id
))
if
classify_1
==
0
and
(
document_name
.
startswith
(
"dzfp
_"
)
):
classify_1
=
0
if
classify_1
==
0
and
(
document_name
.
startswith
(
"dzfp
"
)
or
'电子发票'
in
document_name
):
classify_1
=
29
self
.
running_log
.
info
(
'[dzfp process] [doc_id={0}]'
.
format
(
doc
.
id
))
...
...
@@ -1251,8 +1251,8 @@ class DocView(DocGenericView, DocHandler):
classify_1
=
12
self
.
running_log
.
info
(
'[weixin bs process] [doc_id={0}]'
.
format
(
doc
.
id
))
if
classify_1
==
0
and
(
document_name
.
startswith
(
"dzfp
_"
)
):
classify_1
=
0
if
classify_1
==
0
and
(
document_name
.
startswith
(
"dzfp
"
)
or
'电子发票'
in
document_name
):
classify_1
=
29
self
.
running_log
.
info
(
'[dzfp process] [doc_id={0}]'
.
format
(
doc
.
id
))
# tasks = ['{0}{1}{2}'.format(prefix, consts.SPLIT_STR, doc.id)]
...
...
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