From f0b260f69bbfb53f46bbc115fce7c3fb75e1dd2d Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 04 六月 2026 21:57:01 +0800
Subject: [PATCH] 提交 山西宏腾新型环保科技有限责任公司 配置文件

---
 src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml |    3 ++-
 1 files changed, 2 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..267de0b 100644
--- a/src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml
+++ b/src/main/resources/mapper/account/purchase/AccountPaymentApplicationMapper.xml
@@ -44,6 +44,7 @@
                 AND A.apply_date BETWEEN #{req.startDate} AND #{req.endDate}
             </if>
         </where>
+        order by A.id desc
     </select>
 
     <select id="getInboundBatchesBySupplier"
@@ -89,7 +90,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