From 747ae61edd8ee8a1a0ecb6cad69e51edc9d24d55 Mon Sep 17 00:00:00 2001
From: zhang_nuo <zhang_12370@163.com>
Date: 星期二, 22 九月 2026 12:16:12 +0800
Subject: [PATCH] fix(aftersalesservice): 修复售后工单列表空指针异常

---
 src/main/resources/mapper/stock/StockInRecordMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/stock/StockInRecordMapper.xml b/src/main/resources/mapper/stock/StockInRecordMapper.xml
index 2c04a10..1e85b70 100644
--- a/src/main/resources/mapper/stock/StockInRecordMapper.xml
+++ b/src/main/resources/mapper/stock/StockInRecordMapper.xml
@@ -120,7 +120,7 @@
                 and p.id in (select id from product_tree)
             </if>
         </where>
-        order by sir.create_time desc
+        order by sir.inbound_batches desc
     </select>
     <select id="listStockInRecordExportData" resultType="com.ruoyi.stock.execl.StockInRecordExportData">
         SELECT

--
Gitblit v1.9.3