fix
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -6,6 +6,6 @@ urlpatterns = [ | ... | @@ -6,6 +6,6 @@ urlpatterns = [ |
6 | path(r'', views.DocView.as_view()), | 6 | path(r'', views.DocView.as_view()), |
7 | path(r'query/employee', views.EmployeeView.as_view()), | 7 | path(r'query/employee', views.EmployeeView.as_view()), |
8 | path(r'query/greenBookHistoryFile', views.SearchGBHistoryFileView.as_view()), | 8 | path(r'query/greenBookHistoryFile', views.SearchGBHistoryFileView.as_view()), |
9 | path(r'query/greenBookHistoryFile', views.DownloadGBHistoryFileView.as_view()), | 9 | path(r'download/greenBookHistoryFile', views.DownloadGBHistoryFileView.as_view()), |
10 | path(r'contract/v1', views.SEContractView.as_view()), | 10 | path(r'contract/v1', views.SEContractView.as_view()), |
11 | ] | 11 | ] | ... | ... |
... | @@ -1887,12 +1887,12 @@ class SearchGBHistoryFileView(GenericView): | ... | @@ -1887,12 +1887,12 @@ class SearchGBHistoryFileView(GenericView): |
1887 | @use_args(employee_args, location='data') | 1887 | @use_args(employee_args, location='data') |
1888 | def post(self, request, args): | 1888 | def post(self, request, args): |
1889 | 1889 | ||
1890 | filePath = args.get('filePath') | 1890 | file_path = args.get('file_path') |
1891 | business_type = args.get('business_type') | 1891 | business_type = args.get('business_type') |
1892 | 1892 | ||
1893 | gb_history_file_class = HILGreenBookHistoryFile if business_type in consts.HIL_SET else AFCGreenBookHistoryFile | 1893 | gb_history_file_class = HILGreenBookHistoryFile if business_type in consts.HIL_SET else AFCGreenBookHistoryFile |
1894 | ecm = ECM() | 1894 | ecm = ECM() |
1895 | response_json = ecm.search_doc_info_list(filePath, business_type) | 1895 | response_json = ecm.search_doc_info_list(file_path, business_type) |
1896 | data_objects = response_json['Envelope']['Body']['executeResponse']['return']['dataPackage']['DataObjects'] | 1896 | data_objects = response_json['Envelope']['Body']['executeResponse']['return']['dataPackage']['DataObjects'] |
1897 | for data_object in data_objects: | 1897 | for data_object in data_objects: |
1898 | object_id = data_object['Identity']['ObjectId']['@id'] | 1898 | object_id = data_object['Identity']['ObjectId']['@id'] | ... | ... |
-
Please register or sign in to post a comment