增加租户的功能
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<result column="Name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="Type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="Remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
@@ -82,7 +83,7 @@
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
Id, Name, Type, Remark
|
||||
Id, Name, Type, Remark, tenant_id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.InOutItemExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -136,9 +137,9 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into jsh_inoutitem (Id, Name, Type,
|
||||
Remark)
|
||||
Remark, tenant_id)
|
||||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
||||
#{remark,jdbcType=VARCHAR})
|
||||
#{remark,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.InOutItem">
|
||||
<!--
|
||||
@@ -159,6 +160,9 @@
|
||||
<if test="remark != null">
|
||||
Remark,
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -173,6 +177,9 @@
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.InOutItemExample" resultType="java.lang.Integer">
|
||||
@@ -204,6 +211,9 @@
|
||||
<if test="record.remark != null">
|
||||
Remark = #{record.remark,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" />
|
||||
@@ -218,7 +228,8 @@
|
||||
set Id = #{record.id,jdbcType=BIGINT},
|
||||
Name = #{record.name,jdbcType=VARCHAR},
|
||||
Type = #{record.type,jdbcType=VARCHAR},
|
||||
Remark = #{record.remark,jdbcType=VARCHAR}
|
||||
Remark = #{record.remark,jdbcType=VARCHAR},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -239,6 +250,9 @@
|
||||
<if test="remark != null">
|
||||
Remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
</set>
|
||||
where Id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -250,7 +264,8 @@
|
||||
update jsh_inoutitem
|
||||
set Name = #{name,jdbcType=VARCHAR},
|
||||
Type = #{type,jdbcType=VARCHAR},
|
||||
Remark = #{remark,jdbcType=VARCHAR}
|
||||
Remark = #{remark,jdbcType=VARCHAR},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||
where Id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user