部分表添加租户id
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<result column="Value" jdbcType="VARCHAR" property="value" />
|
||||
<result column="BtnStr" jdbcType="VARCHAR" property="btnstr" />
|
||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
@@ -84,7 +85,7 @@
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
Id, Type, KeyId, Value, BtnStr, delete_Flag
|
||||
Id, Type, KeyId, Value, BtnStr, delete_Flag, tenant_id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.UserBusinessExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -138,11 +139,11 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into jsh_userbusiness (Id, Type, KeyId,
|
||||
Value, BtnStr, delete_Flag
|
||||
)
|
||||
Value, BtnStr, delete_Flag,
|
||||
tenant_id)
|
||||
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{keyid,jdbcType=VARCHAR},
|
||||
#{value,jdbcType=VARCHAR}, #{btnstr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}
|
||||
)
|
||||
#{value,jdbcType=VARCHAR}, #{btnstr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR},
|
||||
#{tenantId,jdbcType=BIGINT})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.UserBusiness">
|
||||
<!--
|
||||
@@ -169,6 +170,9 @@
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag,
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -189,6 +193,9 @@
|
||||
<if test="deleteFlag != null">
|
||||
#{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.UserBusinessExample" resultType="java.lang.Integer">
|
||||
@@ -226,6 +233,9 @@
|
||||
<if test="record.deleteFlag != null">
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.tenantId != null">
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -242,7 +252,8 @@
|
||||
KeyId = #{record.keyid,jdbcType=VARCHAR},
|
||||
Value = #{record.value,jdbcType=VARCHAR},
|
||||
BtnStr = #{record.btnstr,jdbcType=VARCHAR},
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -269,6 +280,9 @@
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
</set>
|
||||
where Id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -282,7 +296,8 @@
|
||||
KeyId = #{keyid,jdbcType=VARCHAR},
|
||||
Value = #{value,jdbcType=VARCHAR},
|
||||
BtnStr = #{btnstr,jdbcType=VARCHAR},
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||
where Id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user