0603 - fix
parent
c68d52c596
commit
b62f6121cc
|
|
@ -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("保存失败");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue