69ee14db by 周伟奇

add folder mvc

1 parent 6eccbd73
......@@ -45,6 +45,27 @@ class Command(BaseCommand, LoggerMixin):
res_list.append((pno, ino, part_idx, consts.RES_SUCCESS_EMPTY))
return
res_list.append((pno, ino, part_idx, consts.RES_SUCCESS))
if classify == consts.MVC_CLASSIFY: # 车辆登记证 3/4页结果整合
for mvc_dict in license_data:
try:
mvc_page = mvc_dict.pop('page')
except Exception as e:
pass
else:
if mvc_page == 'VehicleRegArea':
mvc_dict['姓名/名称'] = []
mvc_dict['身份证明名称/号码'] = []
mvc_dict['转移登记日期'] = []
mvc_res = mvc_dict.pop('results', {})
for register_info in mvc_res.get('register_info', []):
if register_info.get('register_type', 0) == 2:
mvc_dict['姓名/名称'].append(
register_info.get('details', {}).get('name', {}).get('words', ''))
mvc_dict['身份证明名称/号码'].append(
register_info.get('details', {}).get('idno', {}).get('words', ''))
mvc_dict['转移登记日期'].append(
register_info.get('details', {}).get('date', {}).get('words', ''))
del mvc_res
if classify == consts.IC_CLASSIFY:
for id_card_dict in license_data:
try:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!