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

进度计划更新操作

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