7edab924 by 王聪

update

1 parent b0c9794f
......@@ -234,7 +234,7 @@ class PosHandler:
for registration in registration_bar:
if registration.get('register_type', '') == '抵押登记':
register_info = registration.get('register_info', {})
result_obj['application'] = register_info.get('抵押权人姓名/名称', '')
result_obj['applicationName'] = register_info.get('抵押权人姓名/名称', '')
elif registration.get('register_type', '') == '解除抵押':
register_info = registration.get('register_info', {})
result_obj['deMortgageDate'] = register_info.get('解除抵押日期', '')
......@@ -250,7 +250,7 @@ class PosHandler:
def de_mortgage_ocr_process1(file_obj):
result_obj = {
'customerName': '',
'application': '',
'applicationName': '',
'deMortgageDate': ''
}
......
......@@ -60,7 +60,7 @@ file_param = {
de_mortgage_args = {
'customerName': fields.Str(required=True, validate=validate.Length(max=64)),
'application': fields.Str(required=True, validate=validate.Length(max=64)),
'applicationName': fields.Str(required=True, validate=validate.Length(max=64)),
'deMortgageDate': fields.Date(required=True),
'files': fields.Nested(file_param, required=True),
}
......@@ -68,7 +68,7 @@ de_mortgage_args = {
de_mortgage_comments = {
'customerName': ('机动车所有人识别不一致', ),
'application': ('抵押权人姓名/名称识别不一致', ),
'applicationName': ('抵押权人姓名/名称识别不一致', ),
'deMortgageDate': ('解除抵押日期不一致', )
}
......@@ -82,12 +82,12 @@ class DeMortgageView(GenericView):
def post(self, request, args): # interface_report mpos to ocr
files = args.get('files', [])
customer_name = args.get('customerName', '')
application = args.get('application', '')
application_name = args.get('applicationName', '')
de_mortgage_date = args.get('deMortgageDate')
fields_input = {
'customerName': customer_name,
'application': application,
'applicationName': application_name,
'deMortgageDate': de_mortgage_date
}
de_mortgage_info = {}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!