|
@@ -30,7 +30,7 @@ public class ManageController {
|
|
@PostMapping("/search")
|
|
@PostMapping("/search")
|
|
public ApiResult findManage(@RequestBody ManageVO manageVO){
|
|
public ApiResult findManage(@RequestBody ManageVO manageVO){
|
|
List<Long> deptIds = new ArrayList<>();
|
|
List<Long> deptIds = new ArrayList<>();
|
|
- if(Objects.isNull(manageVO.getDeptId())){
|
|
|
|
|
|
+ if(null == manageVO.getDeptId() || manageVO.getDeptId().size() ==0){
|
|
ApiResult<List<Department>> deptResult = departmentService.getDeptChild(12345l);
|
|
ApiResult<List<Department>> deptResult = departmentService.getDeptChild(12345l);
|
|
deptResult.getData().stream().forEach(department -> {
|
|
deptResult.getData().stream().forEach(department -> {
|
|
deptIds.add(department.getId());
|
|
deptIds.add(department.getId());
|