From a08dce3de307ce138396db5fe7274ead2ef5c573 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期二, 20 一月 2026 17:12:08 +0800
Subject: [PATCH] Merge branch 'jtwy' of http://114.132.189.42:9002/r/product-inventory-management-after into sqd-hb

---
 src/main/resources/mapper/production/ProductBomMapper.xml |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductBomMapper.xml b/src/main/resources/mapper/production/ProductBomMapper.xml
new file mode 100644
index 0000000..ec06cd3
--- /dev/null
+++ b/src/main/resources/mapper/production/ProductBomMapper.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.production.mapper.ProductBomMapper">
+
+    <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
+    <resultMap id="BaseResultMap" type="com.ruoyi.production.pojo.ProductBom">
+        <id column="id" property="id"/>
+        <result column="product_model_id" property="productModelId"/>
+        <result column="bom_no" property="bomNo"/>
+        <result column="remark" property="remark"/>
+        <result column="version" property="version"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="create_user" property="createUser"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="tenant_id" property="tenantId"/>
+    </resultMap>
+    <select id="listPage" resultType="com.ruoyi.production.dto.ProductBomDto">
+        select * from (select pb.*,
+        pm.model productModelName,
+        p.product_name productName
+        from product_bom pb
+        left join product_model pm on pb.product_model_id = pm.id
+        left join product p on pm.product_id = p.id)A
+        where 1=1
+        <if test="c.productModelName != null">
+            and productModelName = #{c.productModelName}
+        </if>
+        <if test="c.productName != null">
+            and productName = #{c.productName}
+        </if>
+        <if test="c.bomNo != null">
+            and bom_no = #{c.bomNo}
+        </if>
+        <if test="c.version != null">
+            and version = #{c.version}
+        </if>
+    </select>
+    <select id="getById" resultType="com.ruoyi.production.dto.ProductBomDto">
+        select pb.*,
+               pm.model productModelName,
+               p.product_name productName
+        from product_bom pb
+                 left join product_model pm on pb.product_model_id = pm.id
+                 left join product p on pm.product_id = p.id
+    </select>
+
+</mapper>

--
Gitblit v1.9.3