From a3c868db4d017961be2d394eadb7d428045d5adc Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期四, 13 七月 2023 11:13:16 +0800
Subject: [PATCH] 业务类型页面增加生命周期的处理
---
Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/BtmTypeAttributeMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 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 bfa4fe8..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,7 +41,8 @@
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},
@@ -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