From 4402a6e3befe0c33e8f3b58641984fce3fdb0bbc Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期六, 09 五月 2026 18:04:52 +0800
Subject: [PATCH] feat(stock): 添加库存盘点功能并优化出入库记录

---
 src/main/resources/mapper/basic/ProductModelMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/basic/ProductModelMapper.xml b/src/main/resources/mapper/basic/ProductModelMapper.xml
index 0a540bf..bd388fb 100644
--- a/src/main/resources/mapper/basic/ProductModelMapper.xml
+++ b/src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -140,5 +140,18 @@
         left join product p on p.id = pm.product_id
         order by p.id,pm.id desc
     </select>
+    <select id="selectModelByIds" resultType="com.ruoyi.basic.dto.ProductModelDto">
+        select pm.model,p.product_name,pm.unit
+        from product_model pm
+        left join product p on pm.product_id = p.id
+        <where>
+            <if test="list != null and list.size() > 0">
+                and pm.id in
+                <foreach item="item" collection="list" separator="," open="(" close=")" index="index">
+                  #{item}
+                </foreach>
+            </if>
+        </where>
+    </select>
 
 </mapper>

--
Gitblit v1.9.3