Commit 7231d9e7 authored by wangqiang's avatar wangqiang

修改导出计划的文件名称

parent db5b3019
......@@ -163,7 +163,7 @@ public class ICMPlanExcelListenner extends AnalysisEventListener<ExtICMPlanExcel
ExtICMExternalInterfacePlanVO extICMPlanForDB = getICMPlanByPlanNumber(extICMPlanExcelVO.getPlanNumber());
String icmState = extICMPlanForDB.getState();
//如果计划不是已发布不能进行升版本 -->release已发布
if(!icmState.equals("release")){
if(!icmState.equals(Constants.RELEASE)){
errorString.append("解析到数据第"+excelDataRow+"行,更新ICM计划编号:" + extICMPlanExcelVO.getPlanNumber() + "的状态是"+ icmState +",不能进行更新操作!");
errorList.add(errorString);
}
......
......@@ -121,7 +121,7 @@ public class ExtICMExternalInterfacePlanServiceImpl<V extends ExtICMExternalInte
.registerWriteHandler(new LongestMatchColumnWidthStyleStrategy())
.sheet("ICM计划列表").doWrite(extICMPlanExcelVOList);
//导出数据
FileUtils.exportFile(response, new FileInputStream(filePath), "application/vnd.ms-excel;charset=utf-8", "ICM计划.xlsx");
FileUtils.exportFile(response, new FileInputStream(filePath), "application/vnd.ms-excel;charset=utf-8", "ICM计划模板(内部).xlsx");
FileUtil.del(dir);
} else {
......
......@@ -121,7 +121,7 @@ public class ExtIEDPlanServiceImpl<V extends ExtIEDPlanVO> implements ExtIEDPlan
.registerWriteHandler(new LongestMatchColumnWidthStyleStrategy())
.sheet("IED计划列表").doWrite(extIEDPlanExcelVOList);
//导出数据
FileUtils.exportFile(response, new FileInputStream(filePath), "application/vnd.ms-excel;charset=utf-8", "采购计划.xlsx");
FileUtils.exportFile(response, new FileInputStream(filePath), "application/vnd.ms-excel;charset=utf-8", "IED计划模板(内部).xlsx");
FileUtil.del(dir);
} else {
......
......@@ -116,7 +116,7 @@ public class ExtPuchasePlanAttributeServiceImpl<V extends ExtPuchasePlanAttribut
.registerWriteHandler(new LongestMatchColumnWidthStyleStrategy())
.sheet("采购计划列表").doWrite(extPuchasePlanExcelVOList);
//导出数据
FileUtils.exportFile(response, new FileInputStream(filePath), "application/vnd.ms-excel;charset=utf-8", "采购计划.xlsx");
FileUtils.exportFile(response, new FileInputStream(filePath), "application/vnd.ms-excel;charset=utf-8", "采购计划模板(内部).xlsx");
FileUtil.del(dir);
} else {
......
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