|
|
@ -139,7 +139,7 @@ public class IcPublicServiceController implements ResultDataResolver { |
|
|
|
formDTO.setPageNo(NumConstant.ONE); |
|
|
|
formDTO.setPageSize(NumConstant.TEN_THOUSAND); |
|
|
|
try { |
|
|
|
String fileName = "优势资源管理" + DateUtils.format(new Date()) + ".xlsx"; |
|
|
|
String fileName = "公共服务管理" + DateUtils.format(new Date()) + ".xlsx"; |
|
|
|
excelWriter = EasyExcel.write(ExcelUtils.getOutputStreamForExcel(fileName, response), IcPublicServiceExcel.class).build(); |
|
|
|
WriteSheet writeSheet = EasyExcel.writerSheet("Sheet1").registerWriteHandler(new FreezeAndFilter()).build(); |
|
|
|
PageData<IcPublicServiceListResultDTO> data = null; |
|
|
@ -179,7 +179,7 @@ public class IcPublicServiceController implements ResultDataResolver { |
|
|
|
fileSavePath = importPath.resolve(UUID.randomUUID().toString().concat(extName)); |
|
|
|
} catch (IOException e) { |
|
|
|
String errorMsg = ExceptionUtils.getErrorStackTrace(e); |
|
|
|
log.error("【优势资源管理导入】创建临时存储文件失败:{}", errorMsg); |
|
|
|
log.error("【公共服务管理导入】创建临时存储文件失败:{}", errorMsg); |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "文件上传失败", "文件上传失败"); |
|
|
|
} |
|
|
|
|
|
|
@ -201,8 +201,8 @@ public class IcPublicServiceController implements ResultDataResolver { |
|
|
|
ImportTaskUtils.createImportTask(originalFilename, ImportTaskConstants.IC_PUBLIC_SERVICE), |
|
|
|
ServiceConstant.EPMET_COMMON_SERVICE, |
|
|
|
EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), |
|
|
|
"excel导入优势资源管理信息错误", |
|
|
|
"导入势资源管理信息失败"); |
|
|
|
"excel导入公共服务管理信息错误", |
|
|
|
"导入公共服务管理信息失败"); |
|
|
|
|
|
|
|
// 3.执行导入
|
|
|
|
icPublicServiceService.importExcel(fileSavePath, rstData.getTaskId()); |
|
|
|