添加删除标记
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<result column="KeyId" jdbcType="VARCHAR" property="keyid" />
|
||||
<result column="Value" jdbcType="VARCHAR" property="value" />
|
||||
<result column="BtnStr" jdbcType="VARCHAR" property="btnstr" />
|
||||
<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, Type, KeyId, Value, BtnStr
|
||||
Id, Type, KeyId, Value, BtnStr, delete_Flag
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.UserBusinessExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -137,9 +138,11 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into jsh_userbusiness (Id, Type, KeyId,
|
||||
Value, BtnStr)
|
||||
Value, BtnStr, delete_Flag
|
||||
)
|
||||
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{keyid,jdbcType=VARCHAR},
|
||||
#{value,jdbcType=VARCHAR}, #{btnstr,jdbcType=VARCHAR})
|
||||
#{value,jdbcType=VARCHAR}, #{btnstr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.UserBusiness">
|
||||
<!--
|
||||
@@ -163,6 +166,9 @@
|
||||
<if test="btnstr != null">
|
||||
BtnStr,
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -180,6 +186,9 @@
|
||||
<if test="btnstr != null">
|
||||
#{btnstr,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
#{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.UserBusinessExample" resultType="java.lang.Integer">
|
||||
@@ -214,6 +223,9 @@
|
||||
<if test="record.btnstr != null">
|
||||
BtnStr = #{record.btnstr,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 @@
|
||||
Type = #{record.type,jdbcType=VARCHAR},
|
||||
KeyId = #{record.keyid,jdbcType=VARCHAR},
|
||||
Value = #{record.value,jdbcType=VARCHAR},
|
||||
BtnStr = #{record.btnstr,jdbcType=VARCHAR}
|
||||
BtnStr = #{record.btnstr,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="btnstr != null">
|
||||
BtnStr = #{btnstr,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 Type = #{type,jdbcType=VARCHAR},
|
||||
KeyId = #{keyid,jdbcType=VARCHAR},
|
||||
Value = #{value,jdbcType=VARCHAR},
|
||||
BtnStr = #{btnstr,jdbcType=VARCHAR}
|
||||
BtnStr = #{btnstr,jdbcType=VARCHAR},
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR}
|
||||
where Id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user