|
@@ -237,7 +237,12 @@ public class ApiController {
|
|
|
if (StringUtil.isNotEmpty(pDept.getDeptId())) {
|
|
if (StringUtil.isNotEmpty(pDept.getDeptId())) {
|
|
|
dept.setPid(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);
|
|
jdbcClient.jdbcUpdateById(pDept, connection);
|
|
|
|
|
|
|
|
SysDept exist = new SysDept();
|
|
SysDept exist = new SysDept();
|