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
b936ca78
authored
2021-03-23 18:24:44 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
compare interface
1 parent
ab5ef471
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
b936ca7
import
os
import
time
import
json
import
random
import
datetime
import
fitz
...
...
@@ -316,6 +317,10 @@ class CompareView(GenericView):
uniq_seq
=
args
.
get
(
'uniqSeq'
)
business_type
=
args
.
get
(
'applicationEntity'
)
application_id
=
args
.
get
(
'applicationId'
)
individual_cus_info
=
json
.
dumps
(
args
.
get
(
'individualCusInfo'
))
usedcar_info
=
json
.
dumps
(
args
.
get
(
'usedCarInfo'
))
if
isinstance
(
args
.
get
(
'usedCarInfo'
),
dict
)
else
None
corporate_cus_info
=
json
.
dumps
(
args
.
get
(
'corporateCusInfo'
))
if
isinstance
(
args
.
get
(
'corporateCusInfo'
),
dict
)
else
None
comparison_class
=
HILComparisonInfo
if
business_type
in
consts
.
HIL_SET
else
AFCComparisonInfo
comparison_class
.
objects
.
create
(
uniq_seq
=
uniq_seq
,
...
...
@@ -323,12 +328,12 @@ class CompareView(GenericView):
customer_type
=
args
.
get
(
'customerType'
),
application_version
=
args
.
get
(
'applicationVersion'
),
vehicle_status
=
args
.
get
(
'vehicleStatus'
),
individual_cus_info
=
None
,
usedcar_info
=
None
,
corporate_cus_info
=
None
,
individual_cus_info
=
individual_cus_info
,
usedcar_info
=
usedcar_info
,
corporate_cus_info
=
corporate_cus_info
,
)
# 触发比对
compare
.
apply_async
((
application_id
,
business_type
,
uniq_seq
,
None
),
queue
=
'queue_compare'
)
#
compare.apply_async((application_id, business_type, uniq_seq, None), queue='queue_compare')
return
response
.
ok
()
post
.
openapi_doc
=
'''
...
...
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