Browse Source

程序调整

master
sunyuchao 3 years ago
parent
commit
33883d0896
  1. 6
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/IcCityManagementController.java
  2. 8
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/IcPublicServiceController.java
  3. 2
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/IcSuperiorResourceController.java

6
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/IcCityManagementController.java

@ -138,7 +138,7 @@ public class IcCityManagementController 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), IcCityManagementExcel.class).build();
WriteSheet writeSheet = EasyExcel.writerSheet("Sheet1").registerWriteHandler(new FreezeAndFilter()).build();
PageData<IcCityManagementListResultDTO> data = null;
@ -200,8 +200,8 @@ public class IcCityManagementController implements ResultDataResolver {
ImportTaskUtils.createImportTask(originalFilename, ImportTaskConstants.IC_CITY_MANAGEMENT),
ServiceConstant.EPMET_COMMON_SERVICE,
EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),
"excel导入优势资源管理信息错误",
"导入势资源管理信息失败");
"excel导入城市管理信息错误",
"导入城市管理信息失败");
// 3.执行导入
icCityManagementService.importExcel(fileSavePath, rstData.getTaskId());

8
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/IcPublicServiceController.java

@ -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());

2
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/IcSuperiorResourceController.java

@ -202,7 +202,7 @@ public class IcSuperiorResourceController implements ResultDataResolver {
ServiceConstant.EPMET_COMMON_SERVICE,
EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),
"excel导入优势资源管理信息错误",
"导入势资源管理信息失败");
"导入势资源管理信息失败");
// 3.执行导入
icSuperiorResourceService.importExcel(fileSavePath, rstData.getTaskId());

Loading…
Cancel
Save