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/StaRepairInfoMapper.xml | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml
index 39c1d3d..6732d16 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml
@@ -36,7 +36,7 @@
delete from sta_repair_info
where id = #{id,jdbcType=BIGINT}
</delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo" useGeneratedKeys="true">
+ <insert id="insert" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo">
insert into sta_repair_info
( id,device_no,work_id
,from_node,repair_reason,repair_by
@@ -45,25 +45,25 @@
,#{fromNode,jdbcType=BIGINT},#{repairReason,jdbcType=VARCHAR},#{repairBy,jdbcType=BIGINT}
,#{repairTime,jdbcType=TIMESTAMP})
</insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo" useGeneratedKeys="true">
+ <insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo">
insert into sta_repair_info
<trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null and id !=''">id,</if>
+ <if test="id != null">id,</if>
<if test="deviceNo != null and deviceNo !=''">device_no,</if>
- <if test="workId != null and workId !=''">work_id,</if>
- <if test="fromNode != null and fromNode !=''">from_node,</if>
+ <if test="workId != null">work_id,</if>
+ <if test="fromNode != null">from_node,</if>
<if test="repairReason != null and repairReason !=''">repair_reason,</if>
- <if test="repairBy != null and repairBy !=''">repair_by,</if>
- <if test="repairTime != null and repairTime !=''">repair_time,</if>
+ <if test="repairBy != null">repair_by,</if>
+ <if test="repairTime != null">repair_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null and id !=''">#{id,jdbcType=BIGINT},</if>
+ <if test="id != null">#{id,jdbcType=BIGINT},</if>
<if test="deviceNo != null and deviceNo !=''">#{deviceNo,jdbcType=VARCHAR},</if>
- <if test="workId != null and workId !=''">#{workId,jdbcType=BIGINT},</if>
- <if test="fromNode != null and fromNode !=''">#{fromNode,jdbcType=BIGINT},</if>
+ <if test="workId != null">#{workId,jdbcType=BIGINT},</if>
+ <if test="fromNode != null">#{fromNode,jdbcType=BIGINT},</if>
<if test="repairReason != null and repairReason !=''">#{repairReason,jdbcType=VARCHAR},</if>
- <if test="repairBy != null and repairBy !=''">#{repairBy,jdbcType=BIGINT},</if>
- <if test="repairTime != null and repairTime !=''">#{repairTime,jdbcType=TIMESTAMP},</if>
+ <if test="repairBy != null">#{repairBy,jdbcType=BIGINT},</if>
+ <if test="repairTime != null">#{repairTime,jdbcType=TIMESTAMP},</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo">
@@ -72,16 +72,16 @@
<if test="deviceNo != null and deviceNo !=''">
device_no = #{deviceNo,jdbcType=VARCHAR},
</if>
- <if test="workId != null and workId !=''">
+ <if test="workId != null">
work_id = #{workId,jdbcType=BIGINT},
</if>
- <if test="fromNode != null and fromNode !=''">
+ <if test="fromNode != null">
from_node = #{fromNode,jdbcType=BIGINT},
</if>
<if test="repairReason != null and repairReason !=''">
repair_reason = #{repairReason,jdbcType=VARCHAR},
</if>
- <if test="repairBy != null and repairBy !=''">
+ <if test="repairBy != null">
repair_by = #{repairBy,jdbcType=BIGINT},
</if>
<if test="repairTime != null and repairTime !=''">
--
Gitblit v1.8.0