| | |
| | | public List<MallVipConfig> findConfigList() { |
| | | List<MallVipConfig> configs = this.baseMapper.selectVipConfigList(); |
| | | configs.forEach(item -> { |
| | | item.getBenefits().forEach(benefits -> { |
| | | item.getBenefits().stream().filter(benefit -> { |
| | | return benefit.getIsShow() == 1; |
| | | }).forEach(benefits -> { |
| | | benefits.setIsJump(CollUtil.isEmpty(benefits.getDetails()) ? 2 : 1); |
| | | }); |
| | | }); |
| | |
| | | return false; |
| | | } |
| | | |
| | | if (item.getGainType() == 3 && item.getScoreMultiple() != null) { |
| | | return true; |
| | | } |
| | | |
| | | // 生日权益 |
| | | if (item.getGainType() == 2 && isBirthday) { |
| | | return true; |