| | |
| | | Set<Long> collectAll = mallMembersAll.stream().map(MallMember::getId).collect(Collectors.toSet()); |
| | | Collection<Long> intersection1 = CollUtil.intersection(collectAll, collect); |
| | | if(teamCnt <= (CollUtil.isEmpty(intersection1) ? 0 : intersection1.size())){ |
| | | if(!MemberLevelNewEnum.ZERO_LEVEL.getType().equals(level)){ |
| | | log.info("{},有效人数为:{},升级成为:{},由于:{}",mallMemberRef.getAccountLogin(),intersection1,level,mallMember.getAccountLogin()); |
| | | } |
| | | mallMemberRef.setLevel(level); |
| | | memberMapper.updateById(mallMemberRef); |
| | | |