From 65b7bc39dc8b56f7a3b01980038cbfa92f1bc58d Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 31 八月 2026 19:11:18 +0800
Subject: [PATCH] feat(inspectiontask): 添加状态字段用于表示巡检任务状态

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

diff --git a/src/main/resources/mapper/stock/StockOutRecordMapper.xml b/src/main/resources/mapper/stock/StockOutRecordMapper.xml
index ad5976f..b36f443 100644
--- a/src/main/resources/mapper/stock/StockOutRecordMapper.xml
+++ b/src/main/resources/mapper/stock/StockOutRecordMapper.xml
@@ -62,7 +62,7 @@
                 and p.id in (select id from product_tree)
             </if>
         </where>
-        order by sor.id desc
+        order by sor.create_time desc
     </select>
     <select id="listStockOutRecordExportData" resultType="com.ruoyi.stock.execl.StockOutRecordExportData">
         SELECT
@@ -89,7 +89,7 @@
                 and sor.record_type = #{params.recordType}
             </if>
         </where>
-        order by sor.id desc
+        order by sor.outbound_batches desc
     </select>
 
     <select id="listPageAccountSales" resultType="com.ruoyi.account.bean.vo.sales.SalesOutboundVo">

--
Gitblit v1.9.3