Commit 074a132f by fudahua

离职继承fix

parent 6fe40841
...@@ -133,7 +133,8 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ ...@@ -133,7 +133,8 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
if (CollectionUtils.isEmpty(retPage.getResult())) { if (CollectionUtils.isEmpty(retPage.getResult())) {
return retPage; return retPage;
} }
List<TabHaobanStaff> haobanStaffs = staffService.listNoStatusByStaffIds(wxEnterpriseId, staffIds); List<String> midStaffIds = retPage.getResult().stream().map(dto -> dto.getStaffId()).collect(Collectors.toList());
List<TabHaobanStaff> haobanStaffs = staffService.listNoStatusByStaffIds(wxEnterpriseId, midStaffIds);
Map<String, String> staffNameMap = haobanStaffs.stream().collect(Collectors.toMap(dto -> dto.getStaffId(), dto -> dto.getStaffName(), (o, n) -> o)); Map<String, String> staffNameMap = haobanStaffs.stream().collect(Collectors.toMap(dto -> dto.getStaffId(), dto -> dto.getStaffName(), (o, n) -> o));
retPage.getResult().forEach(dto -> { retPage.getResult().forEach(dto -> {
String staffName = staffNameMap.get(dto.getStaffId()); String staffName = staffNameMap.get(dto.getStaffId());
......
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