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
6d30cb58
authored
2021-03-24 10:36:10 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
0a72fac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
6d30cb5
...
...
@@ -314,20 +314,21 @@ class CompareView(GenericView):
@use_args
(
compare_args
,
location
=
'data'
)
def
post
(
self
,
request
,
args
):
# 存库
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'
),
content
=
args
.
get
(
'content'
,
{})
uniq_seq
=
content
.
get
(
'uniqSeq'
)
business_type
=
content
.
get
(
'applicationEntity'
)
application_id
=
content
.
get
(
'applicationId'
)
individual_cus_info
=
json
.
dumps
(
content
.
get
(
'individualCusInfo'
))
usedcar_info
=
json
.
dumps
(
content
.
get
(
'usedCarInfo'
))
if
isinstance
(
content
.
get
(
'usedCarInfo'
),
dict
)
else
None
corporate_cus_info
=
json
.
dumps
(
content
.
get
(
'corporateCusInfo'
))
if
isinstance
(
content
.
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
,
application_id
=
application_id
,
customer_type
=
args
.
get
(
'customerType'
),
application_version
=
args
.
get
(
'applicationVersion'
),
vehicle_status
=
args
.
get
(
'vehicleStatus'
),
customer_type
=
content
.
get
(
'customerType'
),
application_version
=
content
.
get
(
'applicationVersion'
),
vehicle_status
=
content
.
get
(
'vehicleStatus'
),
individual_cus_info
=
individual_cus_info
,
usedcar_info
=
usedcar_info
,
corporate_cus_info
=
corporate_cus_info
,
...
...
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