From 7602a824e39e19260ae32bb45e799e6ce43300ac Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 14 七月 2023 21:15:29 +0800
Subject: [PATCH] 参照配置组件修改

---
 Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/BtmTypeAttributeMapper.xml |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/BtmTypeAttributeMapper.xml b/Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/BtmTypeAttributeMapper.xml
index 7ea52e2..55b7372 100644
--- a/Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/BtmTypeAttributeMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/BtmTypeAttributeMapper.xml
@@ -41,11 +41,12 @@
         pl_omd_btm_type
     </sql>
     <update id="batchUpdate" parameterType="java.util.List">
-        <foreach collection="records" item="item" index="index" open="begin" close=";end;" separator=";">
+        BEGIN
+        <foreach collection="records" item="item" index="index" separator=";">
             update <include refid="tableName"/> set
                 id = #{item.id,jdbcType=VARCHAR},
                 name = #{item.name,jdbcType=VARCHAR},
-                descrption = #{item.decription,jdbcType=VARCHAR},
+                description = #{item.description,jdbcType=VARCHAR},
                 pk_btm_type = #{item.pkBtmType,jdbcType=VARCHAR},
                 attribute_length = #{item.attributeLength,jdbcType=DECIMAL},
                 attr_data_type = #{item.attrDataType,jdbcType=VARCHAR},
@@ -65,7 +66,9 @@
                 last_modifier = #{item.lastModifier,jdbcType=VARCHAR},
                 last_modify_time = #{item.lastModifyTime,jdbcType=TIMESTAMP},
                 ts = #{item.ts,jdbcType=TIMESTAMP}
+            where oid = #{item.oid,jdbcType=VARCHAR}
         </foreach>
+        ;END;
     </update>
     <delete id="batchDelete">
         delete from

--
Gitblit v1.9.3