From 2d5d8691bdfcfadcc37240c0224e242fe32dc738 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期一, 15 六月 2026 13:20:22 +0800
Subject: [PATCH] fix: 客户往来明细根据签订日期排序

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

diff --git a/src/main/resources/mapper/basic/CustomerMapper.xml b/src/main/resources/mapper/basic/CustomerMapper.xml
index c9be760..ed0e3c8 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 create_time desc
     </select>
 
     <select id="list" resultType="com.ruoyi.basic.vo.CustomerVo">
@@ -159,5 +160,6 @@
             group by  sl.id
         )T2 on T2.id = sl.id
         where sl.customer_id = #{customerId}
+        order by sl.execution_date
     </select>
 </mapper>

--
Gitblit v1.9.3