fix report bug
Showing
6 changed files
with
10 additions
and
11 deletions
... | @@ -314,8 +314,8 @@ definitions: | ... | @@ -314,8 +314,8 @@ definitions: |
314 | properties: | 314 | properties: |
315 | service: | 315 | service: |
316 | description: service | 316 | description: service |
317 | type: number | 317 | type: string |
318 | example: 1 | 318 | example: test_service |
319 | amount: | 319 | amount: |
320 | description: amount | 320 | description: amount |
321 | type: number | 321 | type: number |
... | @@ -650,7 +650,6 @@ definitions: | ... | @@ -650,7 +650,6 @@ definitions: |
650 | - loanTerm | 650 | - loanTerm |
651 | - vehiclePrincipal | 651 | - vehiclePrincipal |
652 | - associatedServicePrincipal | 652 | - associatedServicePrincipal |
653 | - associatedServiceInfo | ||
654 | - monthlyPaymentInfo | 653 | - monthlyPaymentInfo |
655 | properties: | 654 | properties: |
656 | totalLoanAmount: | 655 | totalLoanAmount: | ... | ... |
... | @@ -53,5 +53,5 @@ class ProcessName(NamedEnum): | ... | @@ -53,5 +53,5 @@ class ProcessName(NamedEnum): |
53 | 53 | ||
54 | class WorkflowName(NamedEnum): | 54 | class WorkflowName(NamedEnum): |
55 | NORMAL = (0, 'Normal BS') | 55 | NORMAL = (0, 'Normal BS') |
56 | MOBILE = (0, 'Mobile BS') | 56 | MOBILE = (1, 'Mobile BS') |
57 | 57 | ... | ... |
... | @@ -65,7 +65,7 @@ se_insurance_args = { | ... | @@ -65,7 +65,7 @@ se_insurance_args = { |
65 | } | 65 | } |
66 | 66 | ||
67 | se_associated_args = { | 67 | se_associated_args = { |
68 | 'service': fields.Int(required=True), | 68 | 'service': fields.Str(required=True), |
69 | 'amount': CustomDecimal(required=True), | 69 | 'amount': CustomDecimal(required=True), |
70 | 'financedAmount': CustomDecimal(required=True) | 70 | 'financedAmount': CustomDecimal(required=True) |
71 | } | 71 | } |
... | @@ -90,7 +90,7 @@ se_quotationt_args = { | ... | @@ -90,7 +90,7 @@ se_quotationt_args = { |
90 | 'loanTerm': fields.Int(required=True), | 90 | 'loanTerm': fields.Int(required=True), |
91 | 'vehiclePrincipal': CustomDecimal(required=True), | 91 | 'vehiclePrincipal': CustomDecimal(required=True), |
92 | 'associatedServicePrincipal': CustomDecimal(required=True), | 92 | 'associatedServicePrincipal': CustomDecimal(required=True), |
93 | 'associatedServiceInfo': fields.List(fields.Nested(se_associated_args), required=True, validate=validate.Length(min=1)), | 93 | 'associatedServiceInfo': fields.List(fields.Nested(se_associated_args), required=False), |
94 | 'monthlyPaymentInfo': fields.List(fields.Nested(se_payment_args), required=True, validate=validate.Length(min=1)), | 94 | 'monthlyPaymentInfo': fields.List(fields.Nested(se_payment_args), required=True, validate=validate.Length(min=1)), |
95 | } | 95 | } |
96 | 96 | ... | ... |
... | @@ -395,7 +395,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): | ... | @@ -395,7 +395,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): |
395 | if len(used_car_field_list) > 0: | 395 | if len(used_car_field_list) > 0: |
396 | field_failed['usedCarInfo'].append(';'.join(used_car_field_list)) | 396 | field_failed['usedCarInfo'].append(';'.join(used_car_field_list)) |
397 | 397 | ||
398 | if successful_at_this_level: | 398 | if not successful_at_this_level: |
399 | reason_list = [] | 399 | reason_list = [] |
400 | for key, value in field_failed.items(): | 400 | for key, value in field_failed.items(): |
401 | if len(value) > 0: | 401 | if len(value) > 0: | ... | ... |
... | @@ -199,8 +199,8 @@ associatedServiceInfo: | ... | @@ -199,8 +199,8 @@ associatedServiceInfo: |
199 | properties: | 199 | properties: |
200 | service: | 200 | service: |
201 | description: service | 201 | description: service |
202 | type: number | 202 | type: string |
203 | example: 1 | 203 | example: test_service |
204 | amount: | 204 | amount: |
205 | description: amount | 205 | description: amount |
206 | type: number | 206 | type: number |
... | @@ -456,7 +456,7 @@ SEComparison: | ... | @@ -456,7 +456,7 @@ SEComparison: |
456 | quotationtInfo: | 456 | quotationtInfo: |
457 | description: quotationtInfo | 457 | description: quotationtInfo |
458 | type: object | 458 | type: object |
459 | required: [totalLoanAmount, loanTerm, vehiclePrincipal, associatedServicePrincipal, associatedServiceInfo, monthlyPaymentInfo] | 459 | required: [totalLoanAmount, loanTerm, vehiclePrincipal, associatedServicePrincipal, monthlyPaymentInfo] |
460 | properties: | 460 | properties: |
461 | totalLoanAmount: | 461 | totalLoanAmount: |
462 | description: totalLoanAmount | 462 | description: totalLoanAmount | ... | ... |
... | @@ -38,7 +38,7 @@ hil_sql = """ | ... | @@ -38,7 +38,7 @@ hil_sql = """ |
38 | workflow_name nvarchar(255) | 38 | workflow_name nvarchar(255) |
39 | ); | 39 | ); |
40 | 40 | ||
41 | create hil_compare_report_transaction_start_index | 41 | create index hil_compare_report_transaction_start_index |
42 | on hil_compare_report (transaction_start); | 42 | on hil_compare_report (transaction_start); |
43 | 43 | ||
44 | create table hil_compare_offline_report | 44 | create table hil_compare_offline_report | ... | ... |
-
Please register or sign in to post a comment