From 76c84d95506998f546e6f3ebbf70414c0dd9da9d Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期五, 15 五月 2026 17:15:15 +0800
Subject: [PATCH] refactor(stock): 优化库存记录服务中的仓库信息处理逻辑

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

diff --git a/src/main/resources/mapper/stock/StockInventoryCheckPlanMapper.xml b/src/main/resources/mapper/stock/StockInventoryCheckPlanMapper.xml
index 1e02e1e..202b0ac 100644
--- a/src/main/resources/mapper/stock/StockInventoryCheckPlanMapper.xml
+++ b/src/main/resources/mapper/stock/StockInventoryCheckPlanMapper.xml
@@ -21,12 +21,13 @@
                 and plan_no like concat('%',#{ew.planNo},'%')
             </if>
             <if test="ew.status != null">
-                and status = #{ew.status}
+                and stock_inventory_check_plan.status = #{ew.status}
             </if>
             <if test="ew.startTime != null">
                 and plan_date_start between #{ew.startTime} and #{ew.endTime}
             </if>
         </where>
+        order by stock_inventory_check_plan.id desc
     </select>
 
 </mapper>

--
Gitblit v1.9.3