增加租户的功能
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<result column="assetcategoryID" jdbcType="BIGINT" property="assetcategoryid" />
|
||||
<result column="isystem" jdbcType="SMALLINT" property="isystem" />
|
||||
<result column="isconsumables" jdbcType="SMALLINT" property="isconsumables" />
|
||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.jsh.erp.datasource.entities.AssetName">
|
||||
<!--
|
||||
@@ -90,7 +91,7 @@
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, assetname, assetcategoryID, isystem, isconsumables
|
||||
id, assetname, assetcategoryID, isystem, isconsumables, tenant_id
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
<!--
|
||||
@@ -173,11 +174,11 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into jsh_assetname (id, assetname, assetcategoryID,
|
||||
isystem, isconsumables, description
|
||||
)
|
||||
isystem, isconsumables, tenant_id,
|
||||
description)
|
||||
values (#{id,jdbcType=BIGINT}, #{assetname,jdbcType=VARCHAR}, #{assetcategoryid,jdbcType=BIGINT},
|
||||
#{isystem,jdbcType=SMALLINT}, #{isconsumables,jdbcType=SMALLINT}, #{description,jdbcType=LONGVARCHAR}
|
||||
)
|
||||
#{isystem,jdbcType=SMALLINT}, #{isconsumables,jdbcType=SMALLINT}, #{tenantId,jdbcType=BIGINT},
|
||||
#{description,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.AssetName">
|
||||
<!--
|
||||
@@ -201,6 +202,9 @@
|
||||
<if test="isconsumables != null">
|
||||
isconsumables,
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
@@ -221,6 +225,9 @@
|
||||
<if test="isconsumables != null">
|
||||
#{isconsumables,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -258,6 +265,9 @@
|
||||
<if test="record.isconsumables != null">
|
||||
isconsumables = #{record.isconsumables,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="record.tenantId != null">
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.description != null">
|
||||
description = #{record.description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -277,6 +287,7 @@
|
||||
assetcategoryID = #{record.assetcategoryid,jdbcType=BIGINT},
|
||||
isystem = #{record.isystem,jdbcType=SMALLINT},
|
||||
isconsumables = #{record.isconsumables,jdbcType=SMALLINT},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
description = #{record.description,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -292,7 +303,8 @@
|
||||
assetname = #{record.assetname,jdbcType=VARCHAR},
|
||||
assetcategoryID = #{record.assetcategoryid,jdbcType=BIGINT},
|
||||
isystem = #{record.isystem,jdbcType=SMALLINT},
|
||||
isconsumables = #{record.isconsumables,jdbcType=SMALLINT}
|
||||
isconsumables = #{record.isconsumables,jdbcType=SMALLINT},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -316,6 +328,9 @@
|
||||
<if test="isconsumables != null">
|
||||
isconsumables = #{isconsumables,jdbcType=SMALLINT},
|
||||
</if>
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -332,6 +347,7 @@
|
||||
assetcategoryID = #{assetcategoryid,jdbcType=BIGINT},
|
||||
isystem = #{isystem,jdbcType=SMALLINT},
|
||||
isconsumables = #{isconsumables,jdbcType=SMALLINT},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -344,7 +360,8 @@
|
||||
set assetname = #{assetname,jdbcType=VARCHAR},
|
||||
assetcategoryID = #{assetcategoryid,jdbcType=BIGINT},
|
||||
isystem = #{isystem,jdbcType=SMALLINT},
|
||||
isconsumables = #{isconsumables,jdbcType=SMALLINT}
|
||||
isconsumables = #{isconsumables,jdbcType=SMALLINT},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user