Commit 324e96bc by huangZW

111

parent f30c6117
...@@ -119,8 +119,11 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -119,8 +119,11 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
log.info("staff关联门店不存在1"); log.info("staff关联门店不存在1");
return null; return null;
} }
List<String> storeIds = stores.stream().map(s->s.getRelatedId()).collect(Collectors.toList()); List<String> storeIds = stores.stream().filter(s->(s.getRelatedId()!=null || "".equals(s.getRelatedId()))).map(s->s.getRelatedId()).collect(Collectors.toList());
if(CollectionUtil.isEmpty(storeIds)){
log.info("staff关联门店不存在2");
return null;
}
//2、获取member的storeId //2、获取member的storeId
for(MemberUnionidRelated tab : list){ for(MemberUnionidRelated tab : list){
String memberId = tab.getMemberId(); String memberId = tab.getMemberId();
......
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