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