!903 fix: 使用convertSetByFlatMap避免 ID 重复

Merge pull request !903 from dhb52/N/A
This commit is contained in:
芋道源码 2024-03-09 03:09:35 +00:00 committed by Gitee
commit 8faae78bfe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -137,7 +137,7 @@ public class CrmCustomerController {
return java.util.Collections.emptyList();
}
// 1.1 获取创建人负责人列表
Map<Long, AdminUserRespDTO> userMap = adminUserApi.getUserMap(convertListByFlatMap(list,
Map<Long, AdminUserRespDTO> userMap = adminUserApi.getUserMap(convertSetByFlatMap(list,
contact -> Stream.of(NumberUtils.parseLong(contact.getCreator()), contact.getOwnerUserId())));
Map<Long, DeptRespDTO> deptMap = deptApi.getDeptMap(convertSet(userMap.values(), AdminUserRespDTO::getDeptId));
// 1.2 获取距离进入公海的时间