| | |
| | | //获取大于当前用户等级序号的所有的VIP等级 |
| | | LambdaQueryWrapper<RunVip> runVipLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | runVipLambdaQueryWrapper.eq(RunVip::getState, YesOrNoEnum.YES.getValue()); |
| | | runVipLambdaQueryWrapper.gt(RunVip::getOrderNumber, runVip.getOrderNumber()); |
| | | runVipLambdaQueryWrapper.ge(RunVip::getOrderNumber, runVip.getOrderNumber()); |
| | | List<RunVip> runVips = this.baseMapper.selectList(runVipLambdaQueryWrapper); |
| | | apiRunVipVos = RunVipConversion.INSTANCE.entityToVos(runVips); |
| | | |
| | |
| | | ); |
| | | if(CollUtil.isNotEmpty(mallMoneyFlows)){ |
| | | BigDecimal reduce = mallMoneyFlows.stream().map(MallMoneyFlow::getAmount).reduce(BigDecimal.ZERO, BigDecimal::add); |
| | | if(reduce.intValue() > realScore){ |
| | | if(reduce.intValue() >= realScore){ |
| | | apiRunHealthVo.setScoreUsed(reduce.intValue() - realScore); |
| | | apiRunHealthVo.setScoreTotal(reduce.intValue()); |
| | | } |