From 4afa387b237899d5f841a3070d04739772c22551 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 30 五月 2025 11:17:47 +0800
Subject: [PATCH] 规范二维码生成
---
pms-parent/pms-global/src/main/resources/mapper/PrBillOfMaterialMapper.xml | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrBillOfMaterialMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrBillOfMaterialMapper.xml
index b3a55e0..3e4a6b2 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrBillOfMaterialMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrBillOfMaterialMapper.xml
@@ -44,15 +44,18 @@
)
</foreach>
</insert>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrBillOfMaterial" useGeneratedKeys="true">
+ <insert id="insert" parameterType="com.dy.pmsGlobal.pojoPr.PrBillOfMaterial">
<!--@mbg.generated-->
- insert into pr_bill_of_material (node_id, file_id)
- values (#{nodeId,jdbcType=BIGINT}, #{fileId,jdbcType=BIGINT})
+ insert into pr_bill_of_material (id, node_id, file_id)
+ values (#{id,jdbcType=BIGINT}, #{nodeId,jdbcType=BIGINT}, #{fileId,jdbcType=BIGINT})
</insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrBillOfMaterial" useGeneratedKeys="true">
+ <insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoPr.PrBillOfMaterial">
<!--@mbg.generated-->
insert into pr_bill_of_material
<trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ id,
+ </if>
<if test="nodeId != null">
node_id,
</if>
@@ -61,6 +64,9 @@
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="id != null">
+ #{id,jdbcType=BIGINT},
+ </if>
<if test="nodeId != null">
#{nodeId,jdbcType=BIGINT},
</if>
--
Gitblit v1.8.0