|
@@ -14,10 +14,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="isDel" column="is_del" />
|
|
|
+ <result property="datasourceId" column="datasource_id"/>
|
|
|
+
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysTenantVo">
|
|
|
- select tenant_id, tenant_name, tenant_code, owner, contact_info, address, create_by, create_time, is_del from sys_tenant
|
|
|
+ select tenant_id, tenant_name, tenant_code, owner, contact_info, address, create_by, create_time, is_del,datasource_id from sys_tenant
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysTenantList" parameterType="SysTenant" resultMap="SysTenantResult">
|
|
@@ -48,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="isDel != null and isDel != ''">is_del,</if>
|
|
|
+ <if test="datasourceId != null">datasource_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="tenantName != null and tenantName != ''">#{tenantName},</if>
|
|
@@ -58,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="isDel != null and isDel != ''">#{isDel},</if>
|
|
|
+ <if test="datasourceId != null">#{datasourceId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -72,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
|
|
|
+ <if test="datasourceId != null">datasource_id = #{datasourceId},</if>
|
|
|
</trim>
|
|
|
where tenant_id = #{tenantId}
|
|
|
</update>
|