From a76ff02b1bf5fbcf1d74f54e5d22a6ff6825642e Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期四, 08 五月 2025 15:46:08 +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