添加删除标记
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<result column="enabled" jdbcType="BIT" property="enabled" />
|
||||
<result column="sort" jdbcType="VARCHAR" property="sort" />
|
||||
<result column="anotherName" jdbcType="VARCHAR" property="anothername" />
|
||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
@@ -83,7 +84,7 @@
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, nativeName, enabled, sort, anotherName
|
||||
id, nativeName, enabled, sort, anotherName, delete_Flag
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.MaterialPropertyExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -137,9 +138,11 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into jsh_materialproperty (id, nativeName, enabled,
|
||||
sort, anotherName)
|
||||
sort, anotherName, delete_Flag
|
||||
)
|
||||
values (#{id,jdbcType=BIGINT}, #{nativename,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
|
||||
#{sort,jdbcType=VARCHAR}, #{anothername,jdbcType=VARCHAR})
|
||||
#{sort,jdbcType=VARCHAR}, #{anothername,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.MaterialProperty">
|
||||
<!--
|
||||
@@ -163,6 +166,9 @@
|
||||
<if test="anothername != null">
|
||||
anotherName,
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -180,6 +186,9 @@
|
||||
<if test="anothername != null">
|
||||
#{anothername,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
#{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.MaterialPropertyExample" resultType="java.lang.Integer">
|
||||
@@ -214,6 +223,9 @@
|
||||
<if test="record.anothername != null">
|
||||
anotherName = #{record.anothername,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.deleteFlag != null">
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -229,7 +241,8 @@
|
||||
nativeName = #{record.nativename,jdbcType=VARCHAR},
|
||||
enabled = #{record.enabled,jdbcType=BIT},
|
||||
sort = #{record.sort,jdbcType=VARCHAR},
|
||||
anotherName = #{record.anothername,jdbcType=VARCHAR}
|
||||
anotherName = #{record.anothername,jdbcType=VARCHAR},
|
||||
delete_Flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -253,6 +266,9 @@
|
||||
<if test="anothername != null">
|
||||
anotherName = #{anothername,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -265,7 +281,8 @@
|
||||
set nativeName = #{nativename,jdbcType=VARCHAR},
|
||||
enabled = #{enabled,jdbcType=BIT},
|
||||
sort = #{sort,jdbcType=VARCHAR},
|
||||
anotherName = #{anothername,jdbcType=VARCHAR}
|
||||
anotherName = #{anothername,jdbcType=VARCHAR},
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user