From 51a44136f56640a3d58f761b417e3542834348ae Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期六, 20 六月 2026 20:21:59 +0800
Subject: [PATCH] fix: 修复删除发货记录判断该出库记录是否有开票申请报错问题。

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

diff --git a/src/main/resources/mapper/basic/CustomerMapper.xml b/src/main/resources/mapper/basic/CustomerMapper.xml
index d88c9c4..e9683da 100644
--- a/src/main/resources/mapper/basic/CustomerMapper.xml
+++ b/src/main/resources/mapper/basic/CustomerMapper.xml
@@ -160,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