69ee14db by 周伟奇

add folder mvc

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