Explorar o código

組織架構添加集團總公司

lyhzzz %!s(int64=2) %!d(string=hai) anos
pai
achega
4af9c01852

+ 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));
     }