From 10b88a7ff17caf92f3d4e8a550c1085a70c2517a Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 28 五月 2026 17:43:26 +0800
Subject: [PATCH] Merge dev_New_pro into dev_山西_晋和园_pro

---
 src/main/resources/mapper/basic/CustomerMapper.xml |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/basic/CustomerMapper.xml b/src/main/resources/mapper/basic/CustomerMapper.xml
index 99a5a28..ae92da9 100644
--- a/src/main/resources/mapper/basic/CustomerMapper.xml
+++ b/src/main/resources/mapper/basic/CustomerMapper.xml
@@ -52,6 +52,7 @@
                 )
             </if>
         </where>
+        order by c.id desc
     </select>
 
     <select id="list" resultType="com.ruoyi.basic.vo.CustomerVo">
@@ -106,6 +107,7 @@
                 )
             </if>
         </where>
+        order by c.id desc
     </select>
 
     <select id="customewTransactions" resultType="com.ruoyi.sales.vo.CustomerTransactionsVo">
@@ -134,6 +136,7 @@
                 AND c.customer_name LIKE CONCAT('%', #{customerName}, '%')
             </if>
         </where>
+        order by T1.customer_id desc
     </select>
 
     <select id="customewTransactionsDetails"
@@ -159,5 +162,6 @@
             group by  sl.id
         )T2 on T2.id = sl.id
         where sl.customer_id = #{customerId}
+        order by sl.id desc
     </select>
 </mapper>

--
Gitblit v1.9.3