Commit b15ae8ef by 徐高华

群主

parent 6a7b4b64
......@@ -131,15 +131,7 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
List<TabHaobanStaff> staffList = this.staffService.listNoStatusByStaffIds(wxEnterpriseId, staffIdList);
Map<String, TabHaobanStaff> map = new HashMap<>();
if (CollectionUtils.isNotEmpty(staffList)) {
Map<String, TabHaobanStaff> originalMap = staffList.stream()
.collect(Collectors.toMap(TabHaobanStaff::getStaffId, o -> o, (k1, k2) -> k2));
dtoList.forEach(one -> {
String staffId = one.getOriginalStaffId();
TabHaobanStaff staff = originalMap.get(staffId);
if (null != staff) {
one.setOriginalStaffName(staff.getStaffName());
}
});
map = staffList.stream().collect(Collectors.toMap(TabHaobanStaff::getStaffId, o -> o, (k1, k2) -> k2));
}
return map;
}
......
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