From 4f7eed6051a15f3c5f667a702898e1adb4376354 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期四, 03 八月 2023 17:12:50 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/BtmTypeAttributeMapper.xml | 6 +++--- 1 files changed, 3 insertions(+), 3 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 55b7372..f2484f6 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,8 +41,8 @@ pl_omd_btm_type </sql> <update id="batchUpdate" parameterType="java.util.List"> - BEGIN - <foreach collection="records" item="item" index="index" separator=";"> + + <foreach collection="records" item="item" index="index" separator=";" open="BEGIN" close=";END;"> update <include refid="tableName"/> set id = #{item.id,jdbcType=VARCHAR}, name = #{item.name,jdbcType=VARCHAR}, @@ -68,7 +68,7 @@ ts = #{item.ts,jdbcType=TIMESTAMP} where oid = #{item.oid,jdbcType=VARCHAR} </foreach> - ;END; + </update> <delete id="batchDelete"> delete from -- Gitblit v1.9.3