| | |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error(e); |
| | | return error(e); |
| | | } |
| | | catch (Exception e){ |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error(e); |
| | | return error(CmnCode.EXPORT_GENERAL_LIST_DATA_IMPORT_FIAL.getValue(),CmnCode.EXPORT_GENERAL_LIST_DATA_IMPORT_FIAL.getText()+e.getMessage()); |
| | | } |
| | | } |
| | | @PostMapping("report/{version}") |
| | | @ApiVersion(1) |
| | | public String reportDataExport(HttpServletRequest request){ |
| | | try{ |
| | | FieldSetEntity fse = null; |
| | | Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); |
| | | if (bean != null) { |
| | | RequestParameterEntity reqp = (RequestParameterEntity) bean; |
| | | return OK_Add(systemDataExportService.reportDataExport(reqp)); |
| | | } |
| | | return OK(); |
| | | }catch (BaseException e){ |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error(e); |
| | | return error(e); |
| | | } |
| | | catch (Exception e){ |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error(e); |
| | | return error(CmnCode.EXPORT_GENERAL_LIST_DATA_IMPORT_FIAL.getValue(),CmnCode.EXPORT_GENERAL_LIST_DATA_IMPORT_FIAL.getText()+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |