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