From 54baab834ef04363bb104e2d62084f8644e25c84 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 10 九月 2026 23:19:22 +0800
Subject: [PATCH] fix: 发货台账删除报错

---
 src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml b/src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml
index 8b23627..e14c297 100644
--- a/src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml
+++ b/src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml
@@ -89,7 +89,7 @@
     <select id="existsByStockInRecordId" resultType="java.lang.Boolean">
          SELECT COUNT(*) > 0
         FROM account_payment_application
-        WHERE  status != 2
+        WHERE  status != 2 AND
         <foreach collection="stockInRecordIds" item="id" open="(" separator=" OR " close=")">
             FIND_IN_SET(#{id}, stock_in_record_ids)
         </foreach>

--
Gitblit v1.9.3