|  |  |  | 
|---|
|  |  |  | List<Long> goodsIds = new ArrayList<>(); | 
|---|
|  |  |  | List<Long> couponIds = new ArrayList<>(); | 
|---|
|  |  |  | vipBenefits.getDetails().forEach(item -> { | 
|---|
|  |  |  | if (StrUtil.isBlank(item.getContent())) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (item.getIsClick() == 2) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | Map<Long, MallGoodsCoupon> couponMap = coupons.stream().collect(Collectors.toMap(MallGoodsCoupon::getId, MallGoodsCoupon -> MallGoodsCoupon)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | vipBenefits.getDetails().forEach(item -> { | 
|---|
|  |  |  | if (StrUtil.isBlank(item.getContent())) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (item.getIsClick() == 2) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | List<VipSettingUnAliveSettingBo> items = JSONObject.parseArray(couponData.getValue(), VipSettingUnAliveSettingBo.class); | 
|---|
|  |  |  | setting.setItems(items); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | DataDictionaryCustom rule = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.VIP_SCORE_RULE.getType(), DataDictionaryEnum.VIP_SCORE_RULE.getCode()); | 
|---|
|  |  |  | setting.setRule(rule.getValue()); | 
|---|
|  |  |  | model.addAttribute("vipSetting", setting); | 
|---|
|  |  |  | return FebsUtil.view("modules/vip/vip-setting"); | 
|---|
|  |  |  | } | 
|---|