From b1fb83530b7105e4aa73e4101727dea945eb01c2 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 29 八月 2025 21:48:15 +0800
Subject: [PATCH] bug修改

---
 cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java
index 716e013..fb66680 100644
--- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TVipController.java
+++ b/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:

--
Gitblit v1.7.1