From 2a21bf56c3296510fa56024b6062aae8e99d2293 Mon Sep 17 00:00:00 2001 From: zhanghl <253316343@qq.com> Date: 星期四, 08 五月 2025 10:37:13 +0800 Subject: [PATCH] 生成钣金工单计划 基础代码 --- aps-modules/aps-core/src/main/resources/mapper/core/ApsBomMapper.xml | 21 +++++++++++++++++++++ 1 files changed, 21 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..56269ce 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,25 @@ #{id} </foreach> </delete> + + <resultMap type="ApsBom" id="ApsBomLineResult"> + <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 bom_line_id, item_code, item_name, num + from aps_bom_line + </sql> + + <select id="selectApsBomLineList" parameterType="ApsBom" resultMap="ApsBomLineResult"> + <include refid="selectApsBomLineVo"/> + <where> + <if test="bomHeaderId != null and bomHeaderId != ''"> and bom_header_id = #{bomHeaderId}</if> + <if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> + and del_flag='0' + </where> + order by bom_header_id,bom_line_id + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3