56fac368 by 冯轩

merge

2 parents 069b2014 75e94e77
......@@ -6,7 +6,7 @@ urlpatterns = [
path(r'', views.DocView.as_view()),
path(r'query/employee', views.EmployeeView.as_view()),
path(r'query/greenBookHistoryFile', views.SearchGBHistoryFileView.as_view()),
path(r'query/greenBookHistoryFile', views.DownloadGBHistoryFileView.as_view()),
path(r'download/greenBookHistoryFile', views.DownloadGBHistoryFileView.as_view()),
path(r'invoice/downloadExcel', views.InvoiceExcelView.as_view()),
path(r'invoice/queryInfo', views.InvoiceQueryInfoView.as_view()),
path(r'contract/v1', views.SEContractView.as_view()),
......
......@@ -2077,12 +2077,12 @@ class SearchGBHistoryFileView(GenericView):
@use_args(employee_args, location='data')
def post(self, request, args):
filePath = args.get('filePath')
file_path = args.get('file_path')
business_type = args.get('business_type')
gb_history_file_class = HILGreenBookHistoryFile if business_type in consts.HIL_SET else AFCGreenBookHistoryFile
ecm = ECM()
response_json = ecm.search_doc_info_list(filePath, business_type)
response_json = ecm.search_doc_info_list(file_path, business_type)
data_objects = response_json['Envelope']['Body']['executeResponse']['return']['dataPackage']['DataObjects']
for data_object in data_objects:
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!