| | |
| | | case 3: |
| | | coupon.setTypeValue("体验券"); |
| | | break; |
| | | case 4: |
| | | coupon.setTypeValue("抵扣券"); |
| | | break; |
| | | } |
| | | switch (coupon.getUserPopulation()){ |
| | | case 1: |
| | |
| | | model.addAttribute("couponList", new ArrayList<Coupon>()); |
| | | } |
| | | } |
| | | else{ |
| | | model.addAttribute("ticketList", new ArrayList<Coupon>()); |
| | | |
| | | } |
| | | |
| | | if (vip.getTicketJson() != null && !vip.getTicketJson().isEmpty()){ |
| | | String ticketJson = vip.getTicketJson(); |
| | | // 转化为jsonArray |
| | |
| | | ticketDetailVOS.add(ticketDetailVO); |
| | | } |
| | | model.addAttribute("ticketList", ticketDetailVOS); |
| | | |
| | | }else{ |
| | | model.addAttribute("ticketList", new ArrayList<TicketDetailVO>()); |
| | | |
| | | } |
| | | |
| | | return PREFIX + "vip_edit.html"; |
| | | } |
| | | |
| | |
| | | case 3: |
| | | coupon.setTypeValue("体验券"); |
| | | break; |
| | | case 4: |
| | | coupon.setTypeValue("抵扣券"); |
| | | break; |
| | | } |
| | | switch (coupon.getUserPopulation()){ |
| | | case 1: |