From 572df690f72ed4a077d934823f261dec39b3cc7d Mon Sep 17 00:00:00 2001
From: 刘帅 <rr.iii@qq.com>
Date: 星期二, 08 九月 2026 17:11:34 +0800
Subject: [PATCH] feat&bug:文档内容修改

---
 cloud-server-account/src/main/resources/mapper/RechargeRecordsMapper.xml |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/cloud-server-account/src/main/resources/mapper/RechargeRecordsMapper.xml b/cloud-server-account/src/main/resources/mapper/RechargeRecordsMapper.xml
index 6630cb7..51ce7d6 100644
--- a/cloud-server-account/src/main/resources/mapper/RechargeRecordsMapper.xml
+++ b/cloud-server-account/src/main/resources/mapper/RechargeRecordsMapper.xml
@@ -33,6 +33,7 @@
             </if>
             and t1.payStatus = 2
         </where>
+        order by t1.insertTime desc, t1.id desc
     </select>
     <select id="listAll" resultType="com.dsh.account.entity.VipPayment">
         select t1.* from t_vip_payment t1
@@ -53,7 +54,15 @@
             <if test="sTime !=null and sTime!= '' and eTime !=null and eTime!= ''">
                 and t1.insertTime between #{sTime} and #{eTime}
             </if>
-            and t1.payStatus = 2
+            <choose>
+                <when test="query.includeRefund != null and query.includeRefund">
+                    and t1.payStatus IN (2, 3)
+                </when>
+                <otherwise>
+                    and t1.payStatus = 2
+                </otherwise>
+            </choose>
         </where>
+        order by t1.insertTime desc, t1.id desc
     </select>
 </mapper>

--
Gitblit v1.7.1