Commit 58bf2e73 authored by 侯彦文's avatar 侯彦文

进度计划更新操作

parent 7044afb0
...@@ -294,10 +294,12 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V ...@@ -294,10 +294,12 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
if (StringUtils.isEmpty(excelVO.getNumber())) { if (StringUtils.isEmpty(excelVO.getNumber())) {
buffer.append(String.format("第%s行的计划编号为空", i + 1) + "<br/>"); buffer.append(String.format("第%s行的计划编号为空", i + 1) + "<br/>");
}else{ }else{
//校验编号是否已存在 if (!"更新".equals(excelVO.getOperate())){
ExtPlanVO extPlanVOByNumber = this.searchByNumber(excelVO.getNumber()); //校验编号是否已存在
if (!StringUtils.isEmpty(extPlanVOByNumber)) { ExtPlanVO extPlanVOByNumber = this.searchByNumber(excelVO.getNumber());
buffer.append(String.format("第%s行计划编号已存在", i + 1) + "<br/>"); if (!StringUtils.isEmpty(extPlanVOByNumber)) {
buffer.append(String.format("第%s行计划编号已存在", i + 1) + "<br/>");
}
} }
} }
if (StringUtils.isEmpty(excelVO.getName())) { if (StringUtils.isEmpty(excelVO.getName())) {
......
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