wangys преди 5 години
родител
ревизия
53479406c3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      efunbox-base/efunbox-base-web/src/main/java/cn/efunbox/manage/base/controller/ManageController.java

+ 1 - 1
efunbox-base/efunbox-base-web/src/main/java/cn/efunbox/manage/base/controller/ManageController.java

@@ -30,7 +30,7 @@ public class ManageController {
     @PostMapping("/search")
     public ApiResult findManage(@RequestBody ManageVO manageVO){
         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);
             deptResult.getData().stream().forEach(department -> {
                 deptIds.add(department.getId());