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
3d204fe8
authored
2023-01-08 18:18:43 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/fsm-full' into 'feature/uat-tmp'
添加fsm 任务 See merge request !8
2 parents
d8f23fe9
ce75072d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
3d204fe
...
...
@@ -43,7 +43,7 @@ from apps.doc.models import (
IDBCRecords
,
Configs
,
)
from
celery_compare.tasks
import
compare
from
celery_compare.tasks
import
compare
,
fsm_compare
class
Command
(
BaseCommand
,
LoggerMixin
):
...
...
@@ -2056,8 +2056,13 @@ class Command(BaseCommand, LoggerMixin):
self
.
log_base
,
task_str
,
res_obj
.
id
))
# 触发比对
try
:
# pass
compare
.
apply_async
((
doc
.
application_id
,
business_type
,
None
,
res_obj
.
id
,
fsm_activited
=
getattr
(
res_obj
,
'fsm_activited'
)
if
fsm_activited
:
fsm_compare
.
apply_async
((
doc
.
application_id
,
business_type
,
None
,
res_obj
.
id
,
is_ca
,
True
),
queue
=
'queue_compare'
)
else
:
# pass
compare
.
apply_async
((
doc
.
application_id
,
business_type
,
None
,
res_obj
.
id
,
is_ca
,
True
),
queue
=
'queue_compare'
)
except
Exception
as
e
:
self
.
online_log
.
error
(
...
...
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