From 11b7ee0737314f83cc93873663a78a3c60008e52 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期四, 26 九月 2024 16:01:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TVipController.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TVipController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TVipController.java
index 5bb53f0..99d7270 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TVipController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TVipController.java
@@ -136,6 +136,7 @@
                 return R.ok(vipService.getOne(Wrappers.lambdaQuery(TVip.class)
                         .eq(TVip::getReveal,1)
                         .orderByDesc(TVip::getMaximumDeduction)
+                        .orderByDesc(TVip::getCreateTime)
                         .last("LIMIT 1")));
             case 2:
                 return R.ok(vipService.getOne(Wrappers.lambdaQuery(TVip.class)
@@ -146,6 +147,7 @@
                 return R.ok(vipService.getOne(Wrappers.lambdaQuery(TVip.class)
                         .eq(TVip::getReveal,1)
                         .orderByDesc(TVip::getMonthlyCardDiscount)
+                        .orderByDesc(TVip::getCreateTime)
                         .last("LIMIT 1")));
         }
     }

--
Gitblit v1.7.1