Commit 492f477a by 墨竹

fix:判断空

parent 6344a706
...@@ -582,6 +582,10 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -582,6 +582,10 @@ public class StaffApiServiceImpl implements StaffApiService {
storeIds.add(storeId); storeIds.add(storeId);
List<String> clerkList = clerkService.getclerkListByStoreIds(storeIds); List<String> clerkList = clerkService.getclerkListByStoreIds(storeIds);
List<StaffClerkRelationDTO> staffRelationList = staffClerkRelationService.listByClerkIds(clerkList); List<StaffClerkRelationDTO> staffRelationList = staffClerkRelationService.listByClerkIds(clerkList);
if (CollectionUtils.isEmpty(staffRelationList)) {
logger.error("无未绑定导购");
return Collections.emptyList();
}
List<String> clerkIds = staffRelationList.stream().filter(s -> s.getClerkId() != null).map(s -> s.getClerkId()).collect(Collectors.toList()); List<String> clerkIds = staffRelationList.stream().filter(s -> s.getClerkId() != null).map(s -> s.getClerkId()).collect(Collectors.toList());
if (CollectionUtils.isEmpty(clerkIds)) { if (CollectionUtils.isEmpty(clerkIds)) {
logger.info("无未绑定导购id"); logger.info("无未绑定导购id");
......
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