添加删除标记
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<result column="isystem" jdbcType="SMALLINT" property="isystem" />
|
||||
<result column="isconsumables" jdbcType="SMALLINT" property="isconsumables" />
|
||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.jsh.erp.datasource.entities.AssetName">
|
||||
<!--
|
||||
@@ -91,7 +92,7 @@
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, assetname, assetcategoryID, isystem, isconsumables, tenant_id
|
||||
id, assetname, assetcategoryID, isystem, isconsumables, tenant_id, delete_Flag
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
<!--
|
||||
@@ -175,10 +176,10 @@
|
||||
-->
|
||||
insert into jsh_assetname (id, assetname, assetcategoryID,
|
||||
isystem, isconsumables, tenant_id,
|
||||
description)
|
||||
delete_Flag, description)
|
||||
values (#{id,jdbcType=BIGINT}, #{assetname,jdbcType=VARCHAR}, #{assetcategoryid,jdbcType=BIGINT},
|
||||
#{isystem,jdbcType=SMALLINT}, #{isconsumables,jdbcType=SMALLINT}, #{tenantId,jdbcType=BIGINT},
|
||||
#{description,jdbcType=LONGVARCHAR})
|
||||
#{deleteFlag,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.AssetName">
|
||||
<!--
|
||||
@@ -205,6 +206,9 @@
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
</if>
|
||||
@@ -228,6 +232,9 @@
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
#{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -268,6 +275,9 @@
|
||||
<if test="record.tenantId != null">
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.deleteFlag != null">
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.description != null">
|
||||
description = #{record.description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -288,6 +298,7 @@
|
||||
isystem = #{record.isystem,jdbcType=SMALLINT},
|
||||
isconsumables = #{record.isconsumables,jdbcType=SMALLINT},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||
description = #{record.description,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -304,7 +315,8 @@
|
||||
assetcategoryID = #{record.assetcategoryid,jdbcType=BIGINT},
|
||||
isystem = #{record.isystem,jdbcType=SMALLINT},
|
||||
isconsumables = #{record.isconsumables,jdbcType=SMALLINT},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT}
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -331,6 +343,9 @@
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
@@ -348,6 +363,7 @@
|
||||
isystem = #{isystem,jdbcType=SMALLINT},
|
||||
isconsumables = #{isconsumables,jdbcType=SMALLINT},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -361,7 +377,8 @@
|
||||
assetcategoryID = #{assetcategoryid,jdbcType=BIGINT},
|
||||
isystem = #{isystem,jdbcType=SMALLINT},
|
||||
isconsumables = #{isconsumables,jdbcType=SMALLINT},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT}
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user