From 64c5103ed52d6c07a3abaaf8cc62a2b5b7b4d249 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 17 四月 2026 13:08:13 +0800
Subject: [PATCH] fix: 其他金额被销售台账引用时,删除做限制提示

---
 src/main/resources/mapper/sales/ShippingInfoMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/sales/ShippingInfoMapper.xml b/src/main/resources/mapper/sales/ShippingInfoMapper.xml
index 955a89f..82c67b2 100644
--- a/src/main/resources/mapper/sales/ShippingInfoMapper.xml
+++ b/src/main/resources/mapper/sales/ShippingInfoMapper.xml
@@ -84,6 +84,6 @@
     <select id="getShippingInfoByCustomerName" resultType="com.ruoyi.sales.pojo.ShippingInfo">
         select * from shipping_info si
         left join sales_ledger sl on si.sales_ledger_id = sl.id
-        where sl.customer_name = #{customerName}
+        where si.status = '宸插彂璐�' and sl.customer_name = #{customerName}
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3