|
@@ -125,7 +125,9 @@ public class TemplateInfoFacade extends TemplateInfoServiceImpl {
|
|
templates.allEq(mapAll);
|
|
templates.allEq(mapAll);
|
|
TemplateInfo datas = getOne(templates, false);
|
|
TemplateInfo datas = getOne(templates, false);
|
|
if (datas != null) {
|
|
if (datas != null) {
|
|
- throw new CommonException(CommonErrorCode.NOT_EXISTS, "该模板名已存在");
|
|
|
|
|
|
+ if(!datas.getId().equals(templateInfoRevampVO.getId())){
|
|
|
|
+ throw new CommonException(CommonErrorCode.NOT_EXISTS, "该模板名已存在");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//3.修改表数据的模板名字
|
|
//3.修改表数据的模板名字
|
|
TemplateInfo templateInfo = new TemplateInfo();
|
|
TemplateInfo templateInfo = new TemplateInfo();
|