From 39e8f88af6d3c07c183cda4e7c1d1b1c850209f5 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 18 六月 2026 15:58:59 +0800
Subject: [PATCH] 生产报废、废品发货退货后、不合格处理报废的产品都要进到废品库

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

diff --git a/src/main/resources/mapper/account/purchase/AccountPurchaseInvoiceMapper.xml b/src/main/resources/mapper/account/purchase/AccountPurchaseInvoiceMapper.xml
index 041f2f7..a164b5c 100644
--- a/src/main/resources/mapper/account/purchase/AccountPurchaseInvoiceMapper.xml
+++ b/src/main/resources/mapper/account/purchase/AccountPurchaseInvoiceMapper.xml
@@ -42,6 +42,7 @@
                 AND api.issue_date BETWEEN #{req.startDate} AND #{req.endDate}
             </if>
         </where>
+        order by api.id desc
     </select>
     <select id="getInboundBatchesBySupplier"
             resultType="com.ruoyi.account.bean.vo.purchase.PurchaseInboundVo">

--
Gitblit v1.9.3