Commit af7618d5 by 徐高华

bug

parent 784e3348
......@@ -671,12 +671,12 @@ public class StaffApiServiceImpl implements StaffApiService {
List<StaffClerkRelationDTO> staffRelationList = staffClerkRelationService.listByClerkIds(clerkList);
if (CollectionUtils.isEmpty(staffRelationList)) {
logger.error("无未绑定导购");
return Collections.emptyList();
return clerkList;
}
List<String> clerkIds = staffRelationList.stream().filter(s -> s.getClerkId() != null).map(s -> s.getClerkId()).collect(Collectors.toList());
if (CollectionUtils.isEmpty(clerkIds)) {
logger.info("无未绑定导购id");
return Collections.emptyList();
return clerkList;
}
List<String> unBindList = clerkList.stream().filter(clerkId -> !clerkIds.contains(clerkId)).collect(Collectors.toList());
logger.info("未绑定导购id:{}", JSON.toJSONString(unBindList));
......
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