Commit 298bbf5a by 徐高华

通讯录查询

parent b2cdee86
......@@ -165,12 +165,11 @@ public class StaffApiServiceImpl implements StaffApiService {
if (CollectionUtils.isEmpty(staffDTOList)) {
return new Page<>();
}
Set<String> staffIdList = staffDTOList.stream().map(dto->dto.getStaffId()).collect(Collectors.toSet()) ;
List<String> relationIdList = this.staffClerkRelationService.listRelationsStaffId(staffIdList) ;
staffDTOList.forEach(one -> {
// 关联状态
List<StaffClerkRelationDTO> staffClerkRelationDTOS = staffClerkRelationService.listByStaffId(wxEnterpriseId, one.getStaffId());
one.setRelationFlag(CollectionUtils.isNotEmpty(staffClerkRelationDTOS) ? 1 : 0);
one.setRelationFlag(relationIdList.contains(one.getStaffId()) ? 1 : 0);
});
return page;
}
......
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