Commit 06c0d865447c8065a06d5d1dfce327a195ad91f6

Authored by dhb52
Committed by Gitee
1 parent 1f35ef59

fix: 使用convertSetByFlatMap避免 ID 重复

Signed-off-by: dhb52 <dhb52@126.com>
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/customer/CrmCustomerController.java
... ... @@ -137,7 +137,7 @@ public class CrmCustomerController {
137 137 return java.util.Collections.emptyList();
138 138 }
139 139 // 1.1 获取创建人、负责人列表
140   - Map<Long, AdminUserRespDTO> userMap = adminUserApi.getUserMap(convertListByFlatMap(list,
  140 + Map<Long, AdminUserRespDTO> userMap = adminUserApi.getUserMap(convertSetByFlatMap(list,
141 141 contact -> Stream.of(NumberUtils.parseLong(contact.getCreator()), contact.getOwnerUserId())));
142 142 Map<Long, DeptRespDTO> deptMap = deptApi.getDeptMap(convertSet(userMap.values(), AdminUserRespDTO::getDeptId));
143 143 // 1.2 获取距离进入公海的时间
... ...