|
@@ -233,6 +233,10 @@ public class BedDeptDictService {
|
|
|
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
Map<String, Object> small = dao.selectSmallDeptByCode(deptId);
|
|
|
+ int nn = dao.selectSmallDeptByDept(dept, smallDept);
|
|
|
+ if(null == small && nn > 0){
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "存在相同的大科室-小科室关系,不能新增!");
|
|
|
+ }
|
|
|
int num;
|
|
|
try{
|
|
|
if(null != small){
|