From 7e372698c42c047d3b4e629dafe4e7b689990b9d Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期一, 12 五月 2025 19:34:16 +0800
Subject: [PATCH] 钣金计划:从Redis中读取库存信息

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsBomMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsBomMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsBomMapper.xml
index 35da42e..a25b782 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsBomMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsBomMapper.xml
@@ -137,4 +137,24 @@
             #{id}
         </foreach>
     </delete>
+
+    <resultMap type="ApsBom" id="ApsBomLineResult">
+        <result property="id"    column="id"    />
+        <result property="bomLineId"    column="bom_line_id"    />
+        <result property="itemCode"    column="item_code"    />
+        <result property="itemName"    column="item_name"    />
+        <result property="num"    column="num"    />
+    </resultMap>
+    <sql id="selectApsBomLineVo">
+        select id, bom_line_id,  item_code, item_name,  num
+        from aps_bom_line
+    </sql>
+
+    <select id="selectApsBomLineList" parameterType="String" resultMap="ApsBomLineResult">
+        select id, bom_line_id,  item_code,   num
+        from aps_bom_line  where del_flag='0'
+             and org_code = #{orgCode}
+              and bom_header_id = #{bomHeaderId}
+        order by bom_line_id
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3