Commit 400aad38 authored by wangqiang's avatar wangqiang

增加下载进度计划模板

parent 70313efc
...@@ -436,6 +436,12 @@ public class Constants { ...@@ -436,6 +436,12 @@ public class Constants {
public static final String ICM_PLAN_EXCEL_NAME = "\\ICM计划列表.xlsx"; public static final String ICM_PLAN_EXCEL_NAME = "\\ICM计划列表.xlsx";
public static final String ICM_PLAN_TEMP_FILE_CODE_NAME ="ICM计划001模板"; public static final String ICM_PLAN_TEMP_FILE_CODE_NAME ="ICM计划001模板";
/**
* 进度计划
*/
public static final String PROGRESS_PLAN_EXCEL_NAME = "\\进度计划列表.xlsx";
public static final String PROGRESS_TEMP_FILE_CODE_NAME ="进度计划001模板";
/** /**
* 计划模板 * 计划模板
......
...@@ -42,8 +42,11 @@ public class ExtFileTemplateManagerServiceImpl implements ExtFileTemplateManager ...@@ -42,8 +42,11 @@ public class ExtFileTemplateManagerServiceImpl implements ExtFileTemplateManager
fileId = systemFileFeignService.getSystemFileId(Constants.IED_PLAN_TEMP_FILE_CODE_NAME); fileId = systemFileFeignService.getSystemFileId(Constants.IED_PLAN_TEMP_FILE_CODE_NAME);
}else if(fileType == 3){ //ICM计划模板下载 }else if(fileType == 3){ //ICM计划模板下载
fileId = systemFileFeignService.getSystemFileId(Constants.ICM_PLAN_TEMP_FILE_CODE_NAME); fileId = systemFileFeignService.getSystemFileId(Constants.ICM_PLAN_TEMP_FILE_CODE_NAME);
}else if (fileType == 4){
fileId = systemFileFeignService.getSystemFileId(Constants.PROGRESS_TEMP_FILE_CODE_NAME);
}else { }else {
log.info("未知文件类型:{}",fileType); log.info("未知文件类型:{}",fileType);
throw new DxBusinessException("500", "未知文件类型:" + fileType);
} }
multipartFile = fileManagerFeignService.feignDownloadIO(fileId); multipartFile = fileManagerFeignService.feignDownloadIO(fileId);
} catch (IOException e) { } catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment