无关风月
23 小时以前 b1fb83530b7105e4aa73e4101727dea945eb01c2
cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java
@@ -107,6 +107,9 @@
                        case 3:
                            coupon.setTypeValue("体验券");
                            break;
                            case 4:
                            coupon.setTypeValue("抵扣券");
                            break;
                    }
                    switch (coupon.getUserPopulation()){
                        case 1:
@@ -125,6 +128,11 @@
                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
@@ -141,7 +149,12 @@
                ticketDetailVOS.add(ticketDetailVO);
            }
            model.addAttribute("ticketList", ticketDetailVOS);
        }else{
            model.addAttribute("ticketList", new ArrayList<TicketDetailVO>());
        }
        return PREFIX + "vip_edit.html";
    }
@@ -204,6 +217,9 @@
                        case 3:
                            coupon.setTypeValue("体验券");
                            break;
                        case 4:
                            coupon.setTypeValue("抵扣券");
                            break;
                    }
                    switch (coupon.getUserPopulation()){
                        case 1: