瀏覽代碼

組織架構添加集團總公司

lyhzzz 2 年之前
父節點
當前提交
4af9c01852
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/main/java/com/cdf/controller/back/SysDeptController.java

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

@@ -108,7 +108,13 @@ public class SysDeptController extends BaseLogController{
         DeptVo vo = new DeptVo();
         BeanUtils.copyProperties(dept,vo);
         vo.setChildren(deptService.getDeptList(user.getDeptId()));
-        return ResultData.ok(Arrays.asList(vo));
+
+        DeptVo vot = new DeptVo();
+        Dept deptt = deptService.getById(1);
+        BeanUtils.copyProperties(deptt,vot);
+        vot.setHasChildren(0);
+        vot.setChildren(Arrays.asList(vo));
+        return ResultData.ok(Arrays.asList(vot));
     }