From 3eced4f79a9cf7b211e86b26b8c8ca20ae3f4576 Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期一, 29 一月 2024 09:44:59 +0800
Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复
---
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.10.0