From 990f794e91ddaae1d8ef6a71b5741c58dfed23ba Mon Sep 17 00:00:00 2001
From: 邱宇豪 <qyh123230312>
Date: 星期一, 13 十一月 2023 16:36:57 +0800
Subject: [PATCH] 20231113_qiuyh_调整区域巡检

---
 hd/pipe/secure/src/main/resources/mapping/RegionInspectionMapper.xml |   44 +++++++++++++++++++++++---------------------
 1 files changed, 23 insertions(+), 21 deletions(-)

diff --git a/hd/pipe/secure/src/main/resources/mapping/RegionInspectionMapper.xml b/hd/pipe/secure/src/main/resources/mapping/RegionInspectionMapper.xml
index 8b5841d..fc2846f 100644
--- a/hd/pipe/secure/src/main/resources/mapping/RegionInspectionMapper.xml
+++ b/hd/pipe/secure/src/main/resources/mapping/RegionInspectionMapper.xml
@@ -57,27 +57,29 @@
       </if>
     </trim>
     on duplicate key update
-    <if test="task != null">
-      task = #{task,jdbcType=VARCHAR},
-    </if>
-    <if test="standard != null">
-      standard = #{standard,jdbcType=VARCHAR},
-    </if>
-    <if test="createUser != null">
-      createUser = #{createUser,jdbcType=VARCHAR},
-    </if>
-    <if test="createTime != null">
-      createTime = #{createTime,jdbcType=TIMESTAMP},
-    </if>
-    <if test="updateUser != null">
-      updateUser = #{updateUser,jdbcType=VARCHAR},
-    </if>
-    <if test="updateTime != null">
-      updateTime = #{updateTime,jdbcType=TIMESTAMP},
-    </if>
-    <if test="companyId != null">
-      companyId = #{companyId,jdbcType=VARCHAR},
-    </if>
+    <trim suffixOverrides=",">
+      <if test="task != null">
+        task = #{task,jdbcType=VARCHAR},
+      </if>
+      <if test="standard != null">
+        standard = #{standard,jdbcType=VARCHAR},
+      </if>
+      <if test="createUser != null">
+        createUser = #{createUser,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        createTime = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateUser != null">
+        updateUser = #{updateUser,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        updateTime = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="companyId != null">
+        companyId = #{companyId,jdbcType=VARCHAR},
+      </if>
+    </trim>
 
   </insert>
 

--
Gitblit v1.9.3