| | |
| | | QueryWrapper<MallProductBuy> query = new QueryWrapper<>(); |
| | | query.eq("state",ProductEnum.PRODUCT_BUY_SUCCESS.getValue()); |
| | | query.eq("mate_state",ProductEnum.PRODUCT_BUY_MATE_STATE_FAIL.getValue()); |
| | | query.orderByAsc("CREATED_TIME"); |
| | | List<MallProductBuy> mallProductBuys = mallProductBuyMapper.selectList(query); |
| | | if(CollUtil.isEmpty(mallProductBuys)){ |
| | | return; |
| | |
| | | } |
| | | |
| | | 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())){ |
| | | // Collection<Long> intersection1 = CollUtil.intersection(collectAll, collect); |
| | | if(teamCnt <= (CollUtil.isEmpty(collectAll) ? 0 : collectAll.size())){ |
| | | mallMemberRef.setLevel(level); |
| | | memberMapper.updateById(mallMemberRef); |
| | | |