Commit 5a03fc5a by 徐高华

成员列表导购查询

parent 9d215b68
......@@ -216,8 +216,10 @@ public class StaffApiServiceImpl implements StaffApiService {
Map<String,ClerkDTO> clerkMap = new HashMap<>() ;
if(CollectionUtils.isNotEmpty(relationDTOList)) {
Set<String> clerkIdSet = relationDTOList.stream().filter(o->o.getEnterpriseId().equals(loginEnterpriseId)).map(o->o.getClerkId()).collect(Collectors.toSet()) ;
List<ClerkDTO> clerkDTOS = this.clerkService.getClerkByIds(clerkIdSet) ;
clerkMap.putAll(clerkDTOS.stream().collect(Collectors.toMap(o->o.getClerkId(),o->o,(k1,k2)->k1)));
if(CollectionUtils.isNotEmpty(clerkIdSet)) {
List<ClerkDTO> clerkDTOS = this.clerkService.getClerkByIds(clerkIdSet);
clerkMap.putAll(clerkDTOS.stream().collect(Collectors.toMap(o -> o.getClerkId(), o -> o, (k1, k2) -> k1)));
}
}
staffDTOList.forEach(one -> {
if(relationIdList.contains(one.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