This is an automated email from the ASF dual-hosted git repository.

vernedeng pushed a commit to branch branch-1.8
in repository https://gitbox.apache.org/repos/asf/inlong.git

commit 15d9fd922ef314977c7ce47c1fdf5e1655efd945
Author: vernedeng <[email protected]>
AuthorDate: Fri Jul 14 17:32:15 2023 +0800

    [INLONG-8541][Manager] Fix saving InlongGroup with error tenant (#8542)
---
 .../src/main/resources/mappers/InlongGroupEntityMapper.xml        | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git 
a/inlong-manager/manager-dao/src/main/resources/mappers/InlongGroupEntityMapper.xml
 
b/inlong-manager/manager-dao/src/main/resources/mappers/InlongGroupEntityMapper.xml
index 9628297771..8237726115 100644
--- 
a/inlong-manager/manager-dao/src/main/resources/mappers/InlongGroupEntityMapper.xml
+++ 
b/inlong-manager/manager-dao/src/main/resources/mappers/InlongGroupEntityMapper.xml
@@ -67,6 +67,7 @@
             
parameterType="org.apache.inlong.manager.dao.entity.InlongGroupEntity">
         insert into inlong_group
         <trim prefix="(" suffix=")" suffixOverrides="," >
+            tenant,
             <if test="id != null">
                 id,
             </if>
@@ -79,9 +80,6 @@
             <if test="description != null and description != ''">
                 description,
             </if>
-            <if test="tenant != null and tenant != ''">
-                tenant,
-            </if>
             <if test="mqType != null and mqType != ''">
                 mq_type,
             </if>
@@ -138,6 +136,7 @@
             </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides="," >
+            #{tenant,jdbcType=VARCHAR},
             <if test="id != null">
                 #{id,jdbcType=INTEGER},
             </if>
@@ -150,9 +149,6 @@
             <if test="description != null and description != ''">
                 #{description,jdbcType=VARCHAR},
             </if>
-            <if test="tenant != null and tenant != ''">
-                #{tenant,jdbcType=VARCHAR},
-            </if>
             <if test="mqType != null and mqType != ''">
                 #{mqType,jdbcType=VARCHAR},
             </if>

Reply via email to