0603 - fix

dev_xgfuseridcard
tianxinlei 2026-06-03 11:44:08 +08:00
parent c68d52c596
commit b62f6121cc
1 changed files with 1 additions and 6 deletions

View File

@ -62,12 +62,7 @@ public class DepartmentAddExe {
throw new BizException("部门名称已存在"); throw new BizException("部门名称已存在");
} }
BeanUtils.copyProperties(cmd, examTypeE); BeanUtils.copyProperties(cmd, examTypeE);
Long id = null; Long id = departmentGateway.add(examTypeE);
try {
id = departmentGateway.add(examTypeE);
} catch (Exception e) {
throw new RuntimeException(e);
}
if (id ==null) { if (id ==null) {
throw new BizException("保存失败"); throw new BizException("保存失败");