From 3ce910ea493dea8a3778bcb9532d73f71741a3b2 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期六, 23 五月 2026 12:42:32 +0800
Subject: [PATCH] 发货台账删除如果审核就不允许删除

---
 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 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>

--
Gitblit v1.9.3