Browse Source

1128需要变更

wanghongzhi 1 năm trước cách đây
mục cha
commit
258bc83a5e

+ 6 - 1
easydo-chengfa/src/main/java/easydo/technology/controller/ApiController.java

@@ -237,7 +237,12 @@ public class ApiController {
                 if (StringUtil.isNotEmpty(pDept.getDeptId())) {
                     dept.setPid(pDept.getDeptId());
                 }
-                pDept.setSubCount(pDept.getSubCount() + 1);
+                try {
+                    pDept.setSubCount(pDept.getSubCount() + 1);
+                }catch (Exception e){
+                    throw new BizException(model.toString());
+                }
+
                 jdbcClient.jdbcUpdateById(pDept, connection);
 
                 SysDept exist = new SysDept();