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
1d152d72
authored
2021-05-11 14:39:57 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix report bug
1 parent
e1cd63be
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
11 deletions
docs/se_compare.yaml
src/apps/doc/named_enum.py
src/apps/doc/views.py
src/celery_compare/tasks.py
src/common/api_doc_bak.py
src/common/tools/mssql_script3.py
docs/se_compare.yaml
View file @
1d152d7
...
...
@@ -314,8 +314,8 @@ definitions:
properties
:
service
:
description
:
service
type
:
number
example
:
1
type
:
string
example
:
test_service
amount
:
description
:
amount
type
:
number
...
...
@@ -650,7 +650,6 @@ definitions:
-
loanTerm
-
vehiclePrincipal
-
associatedServicePrincipal
-
associatedServiceInfo
-
monthlyPaymentInfo
properties
:
totalLoanAmount
:
...
...
src/apps/doc/named_enum.py
View file @
1d152d7
...
...
@@ -53,5 +53,5 @@ class ProcessName(NamedEnum):
class
WorkflowName
(
NamedEnum
):
NORMAL
=
(
0
,
'Normal BS'
)
MOBILE
=
(
0
,
'Mobile BS'
)
MOBILE
=
(
1
,
'Mobile BS'
)
...
...
src/apps/doc/views.py
View file @
1d152d7
...
...
@@ -65,7 +65,7 @@ se_insurance_args = {
}
se_associated_args
=
{
'service'
:
fields
.
Int
(
required
=
True
),
'service'
:
fields
.
Str
(
required
=
True
),
'amount'
:
CustomDecimal
(
required
=
True
),
'financedAmount'
:
CustomDecimal
(
required
=
True
)
}
...
...
@@ -90,7 +90,7 @@ se_quotationt_args = {
'loanTerm'
:
fields
.
Int
(
required
=
True
),
'vehiclePrincipal'
:
CustomDecimal
(
required
=
True
),
'associatedServicePrincipal'
:
CustomDecimal
(
required
=
True
),
'associatedServiceInfo'
:
fields
.
List
(
fields
.
Nested
(
se_associated_args
),
required
=
True
,
validate
=
validate
.
Length
(
min
=
1
)
),
'associatedServiceInfo'
:
fields
.
List
(
fields
.
Nested
(
se_associated_args
),
required
=
False
),
'monthlyPaymentInfo'
:
fields
.
List
(
fields
.
Nested
(
se_payment_args
),
required
=
True
,
validate
=
validate
.
Length
(
min
=
1
)),
}
...
...
src/celery_compare/tasks.py
View file @
1d152d7
...
...
@@ -395,7 +395,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id):
if
len
(
used_car_field_list
)
>
0
:
field_failed
[
'usedCarInfo'
]
.
append
(
';'
.
join
(
used_car_field_list
))
if
successful_at_this_level
:
if
not
successful_at_this_level
:
reason_list
=
[]
for
key
,
value
in
field_failed
.
items
():
if
len
(
value
)
>
0
:
...
...
src/common/api_doc_bak.py
View file @
1d152d7
...
...
@@ -199,8 +199,8 @@ associatedServiceInfo:
properties:
service:
description: service
type:
number
example:
1
type:
string
example:
test_service
amount:
description: amount
type: number
...
...
@@ -456,7 +456,7 @@ SEComparison:
quotationtInfo:
description: quotationtInfo
type: object
required: [totalLoanAmount, loanTerm, vehiclePrincipal, associatedServicePrincipal,
associatedServiceInfo,
monthlyPaymentInfo]
required: [totalLoanAmount, loanTerm, vehiclePrincipal, associatedServicePrincipal, monthlyPaymentInfo]
properties:
totalLoanAmount:
description: totalLoanAmount
...
...
src/common/tools/mssql_script3.py
View file @
1d152d7
...
...
@@ -38,7 +38,7 @@ hil_sql = """
workflow_name nvarchar(255)
);
create hil_compare_report_transaction_start_index
create
index
hil_compare_report_transaction_start_index
on hil_compare_report (transaction_start);
create table hil_compare_offline_report
...
...
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