cb8f31f8 by 冯轩

Merge branch 'feature/CHINARPA-5131-5234' into feature/uat-tmp

2 parents ea1e7a1e 33a3d92e
...@@ -2095,7 +2095,11 @@ class SearchGBHistoryFileView(GenericView): ...@@ -2095,7 +2095,11 @@ class SearchGBHistoryFileView(GenericView):
2095 gb_history_file_class = HILGreenBookHistoryFile if business_type in consts.HIL_SET else AFCGreenBookHistoryFile 2095 gb_history_file_class = HILGreenBookHistoryFile if business_type in consts.HIL_SET else AFCGreenBookHistoryFile
2096 ecm = ECM() 2096 ecm = ECM()
2097 response_json = ecm.search_doc_info_list(file_path, business_type) 2097 response_json = ecm.search_doc_info_list(file_path, business_type)
2098 try:
2098 data_objects = response_json['Envelope']['Body']['executeResponse']['return']['dataPackage']['DataObjects'] 2099 data_objects = response_json['Envelope']['Body']['executeResponse']['return']['dataPackage']['DataObjects']
2100 except Exception as e:
2101 self.exception_log.exception('[SearchGBHistoryFileView] [response_json parse failed] [response_json={0}] [error={1}]'.format(response_json, traceback.format_exc()))
2102 return response.ok(data=False)
2099 self.running_log.info('[SearchGBHistoryFileView] [data_objects size={0}] '.format(len(data_objects))) 2103 self.running_log.info('[SearchGBHistoryFileView] [data_objects size={0}] '.format(len(data_objects)))
2100 for data_object in data_objects: 2104 for data_object in data_objects:
2101 object_id = data_object['Identity']['ObjectId']['@id'] 2105 object_id = data_object['Identity']['ObjectId']['@id']
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!