From 393859848d92c4773c55416ee61f45eea6573941 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期四, 14 五月 2026 17:03:15 +0800
Subject: [PATCH] feat(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