From 67031ba3128a445cede7253ab9e0a50885ba0382 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 22 五月 2026 13:08:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_New_pro' into dev_New_pro

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

diff --git a/src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml b/src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml
index f1f5c5b..8b23627 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
+        WHERE  status != 2
         <foreach collection="stockInRecordIds" item="id" open="(" separator=" OR " close=")">
             FIND_IN_SET(#{id}, stock_in_record_ids)
         </foreach>
diff --git a/src/main/resources/mapper/account/sales/AccountInvoiceApplicationMapper.xml b/src/main/resources/mapper/account/sales/AccountInvoiceApplicationMapper.xml
index 99b16d2..842e94c 100644
--- a/src/main/resources/mapper/account/sales/AccountInvoiceApplicationMapper.xml
+++ b/src/main/resources/mapper/account/sales/AccountInvoiceApplicationMapper.xml
@@ -64,7 +64,7 @@
     <select id="existsByStockOutRecordId" resultType="java.lang.Boolean">
         SELECT COUNT(*) > 0
         FROM account_invoice_application
-        WHERE
+        WHERE status!=2
         <foreach collection="stockOutRecordIds" item="id" open="(" separator=" OR " close=")">
             FIND_IN_SET(#{id}, stock_out_record_ids)
         </foreach>

--
Gitblit v1.9.3