|
@@ -3,6 +3,7 @@ package com.ruoyi.project.system.controller;
|
|
import java.util.Iterator;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import com.ruoyi.project.system.mapper.SysDeptMapper;
|
|
import com.ruoyi.project.system.mapper.SysDeptMapper;
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -133,13 +134,13 @@ public class SysDeptController extends BaseController
|
|
}
|
|
}
|
|
dept.setCreateBy(SecurityUtils.getUsername());
|
|
dept.setCreateBy(SecurityUtils.getUsername());
|
|
deptService.insertDept(dept);
|
|
deptService.insertDept(dept);
|
|
-// try {
|
|
|
|
|
|
+ try {
|
|
//承包商权限覆盖
|
|
//承包商权限覆盖
|
|
deptMapper.insertCbs(dept);
|
|
deptMapper.insertCbs(dept);
|
|
-// }
|
|
|
|
-// catch (Exception e) {
|
|
|
|
-//
|
|
|
|
-// }
|
|
|
|
|
|
+ }
|
|
|
|
+ catch (Exception e) {
|
|
|
|
+ logger.error(e.toString());
|
|
|
|
+ }
|
|
return toAjax(1);
|
|
return toAjax(1);
|
|
}
|
|
}
|
|
|
|
|