From cf510b3a38f20d5dba5b7a0b71f097753b3ca409 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 25 十二月 2024 17:27:48 +0800
Subject: [PATCH] add mp table

---
 pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 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 9483fc7..12e4b6a 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml
@@ -49,19 +49,19 @@
         insert into sta_repair_info
         <trim prefix="(" suffix=")" suffixOverrides=",">
                 <if test="id != null">id,</if>
-                <if test="deviceNo != null">device_no,</if>
+                <if test="deviceNo != null and deviceNo !=''">device_no,</if>
                 <if test="workId != null">work_id,</if>
                 <if test="fromNode != null">from_node,</if>
-                <if test="repairReason != null">repair_reason,</if>
+                <if test="repairReason != null and repairReason !=''">repair_reason,</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">#{id,jdbcType=BIGINT},</if>
-                <if test="deviceNo != null">#{deviceNo,jdbcType=VARCHAR},</if>
+                <if test="deviceNo != null and deviceNo !=''">#{deviceNo,jdbcType=VARCHAR},</if>
                 <if test="workId != null">#{workId,jdbcType=BIGINT},</if>
                 <if test="fromNode != null">#{fromNode,jdbcType=BIGINT},</if>
-                <if test="repairReason != null">#{repairReason,jdbcType=VARCHAR},</if>
+                <if test="repairReason != null and repairReason !=''">#{repairReason,jdbcType=VARCHAR},</if>
                 <if test="repairBy != null">#{repairBy,jdbcType=BIGINT},</if>
                 <if test="repairTime != null">#{repairTime,jdbcType=TIMESTAMP},</if>
         </trim>
@@ -69,7 +69,7 @@
     <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo">
         update sta_repair_info
         <set>
-                <if test="deviceNo != null">
+                <if test="deviceNo != null and deviceNo !=''">
                     device_no = #{deviceNo,jdbcType=VARCHAR},
                 </if>
                 <if test="workId != null">
@@ -78,13 +78,13 @@
                 <if test="fromNode != null">
                     from_node = #{fromNode,jdbcType=BIGINT},
                 </if>
-                <if test="repairReason != null">
+                <if test="repairReason != null and repairReason !=''">
                     repair_reason = #{repairReason,jdbcType=VARCHAR},
                 </if>
                 <if test="repairBy != null">
                     repair_by = #{repairBy,jdbcType=BIGINT},
                 </if>
-                <if test="repairTime != null">
+                <if test="repairTime != null and repairTime !=''">
                     repair_time = #{repairTime,jdbcType=TIMESTAMP},
                 </if>
         </set>

--
Gitblit v1.8.0