Commit 6ae6ffcd by xugaojun

【11-1迭代】: 专属导购未检测问题处理

parent de54db64
......@@ -267,13 +267,12 @@ public class ExternalClerkRelatedApiServiceImpl implements ExternalClerkRelatedA
if (CollectionUtils.isEmpty(res)) {
return Collections.emptyMap();
}
return res.stream()
.collect(Collectors.toMap(
// memberId
return res.stream().collect(Collectors.toMap(
// key-memberId
MemberStaffRelExtDO::getMemberId,
// 重复转集合
// value-list
e -> new ArrayList<>(Collections.singletonList(e.getStaffWxUserId())),
// 集合添加
// 重复key的value添加到集合
(List<String> oldList, List<String> newList) -> {
oldList.addAll(newList);
return oldList;
......
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