Browse Source

组织架构去除集团总公司

lyhzzz 2 năm trước cách đây
mục cha
commit
05671a9a90

+ 9 - 9
src/main/java/com/cdf/controller/back/SysDeptController.java

@@ -108,15 +108,15 @@ public class SysDeptController extends BaseLogController{
         DeptVo vo = new DeptVo();
         BeanUtils.copyProperties(dept,vo);
         vo.setChildren(deptService.getDeptList(user.getDeptId()));
-        if(user.getDeptId() != null && ( user.getDeptId() == 22 || user.getDeptId() == 33)){
-            DeptVo vot = new DeptVo();
-            Dept deptt = deptService.getById(1);
-            BeanUtils.copyProperties(deptt,vot);
-            vot.setHasChildren(0);
-            vot.setCanDel(0);
-            vot.setChildren(Arrays.asList(vo));
-            return ResultData.ok(Arrays.asList(vot));
-        }
+//        if(user.getDeptId() != null && ( user.getDeptId() == 22 || user.getDeptId() == 33)){
+//            DeptVo vot = new DeptVo();
+//            Dept deptt = deptService.getById(1);
+//            BeanUtils.copyProperties(deptt,vot);
+//            vot.setHasChildren(0);
+//            vot.setCanDel(0);
+//            vot.setChildren(Arrays.asList(vo));
+//            return ResultData.ok(Arrays.asList(vot));
+//        }
         return ResultData.ok(Arrays.asList(vo));
     }