Commit a2aba5be by 徐高华

test

parent c00cf801
...@@ -487,7 +487,7 @@ public class StaffController extends WebBaseController { ...@@ -487,7 +487,7 @@ public class StaffController extends WebBaseController {
List<DepartmentDTO> relationList = departmentApiService.listSonByDepartmentIds(departmentIdSet, wxEnterpriseId); List<DepartmentDTO> relationList = departmentApiService.listSonByDepartmentIds(departmentIdSet, wxEnterpriseId);
Map<String, DepartmentDTO> departmentMap = relationList.stream().collect(Collectors.toMap(DepartmentDTO::getDepartmentId, s -> s)); Map<String, DepartmentDTO> departmentMap = relationList.stream().collect(Collectors.toMap(DepartmentDTO::getDepartmentId, s -> s));
List<String> departmentIds = new ArrayList<>(); List<String> departmentIds = new ArrayList<>();
if(!needDep) { if(needDep) {
departmentIds = relationList.stream().map(DepartmentDTO::getDepartmentId).collect(Collectors.toList()); departmentIds = relationList.stream().map(DepartmentDTO::getDepartmentId).collect(Collectors.toList());
} }
List<StaffDTO> staffAllList = Lists.newArrayListWithCapacity(5000); List<StaffDTO> staffAllList = Lists.newArrayListWithCapacity(5000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment