1d152d72 by 周伟奇

fix report bug

1 parent e1cd63be
......@@ -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:
......
......@@ -53,5 +53,5 @@ class ProcessName(NamedEnum):
class WorkflowName(NamedEnum):
NORMAL = (0, 'Normal BS')
MOBILE = (0, 'Mobile BS')
MOBILE = (1, 'Mobile BS')
......
......@@ -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)),
}
......
......@@ -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:
......
......@@ -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
......
......@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!