添加删除标记
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
<result column="Remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="IsDefault" jdbcType="BIT" property="isdefault" />
|
||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||
<result column="delete_Flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
@@ -86,7 +87,7 @@
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
Id, Name, SerialNo, InitialAmount, CurrentAmount, Remark, IsDefault, tenant_id
|
||||
Id, Name, SerialNo, InitialAmount, CurrentAmount, Remark, IsDefault, tenant_id, delete_Flag
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.AccountExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -141,10 +142,12 @@
|
||||
-->
|
||||
insert into jsh_account (Id, Name, SerialNo,
|
||||
InitialAmount, CurrentAmount, Remark,
|
||||
IsDefault, tenant_id)
|
||||
IsDefault, tenant_id, delete_Flag
|
||||
)
|
||||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{serialno,jdbcType=VARCHAR},
|
||||
#{initialamount,jdbcType=DECIMAL}, #{currentamount,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR},
|
||||
#{isdefault,jdbcType=BIT}, #{tenantId,jdbcType=BIGINT})
|
||||
#{isdefault,jdbcType=BIT}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Account">
|
||||
<!--
|
||||
@@ -177,6 +180,9 @@
|
||||
<if test="tenantId != null">
|
||||
tenant_id,
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -203,6 +209,9 @@
|
||||
<if test="tenantId != null">
|
||||
#{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
#{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.AccountExample" resultType="java.lang.Integer">
|
||||
@@ -246,6 +255,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>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -264,7 +276,8 @@
|
||||
CurrentAmount = #{record.currentamount,jdbcType=DECIMAL},
|
||||
Remark = #{record.remark,jdbcType=VARCHAR},
|
||||
IsDefault = #{record.isdefault,jdbcType=BIT},
|
||||
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>
|
||||
@@ -297,6 +310,9 @@
|
||||
<if test="tenantId != null">
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="deleteFlag != null">
|
||||
delete_Flag = #{deleteFlag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where Id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -312,7 +328,8 @@
|
||||
CurrentAmount = #{currentamount,jdbcType=DECIMAL},
|
||||
Remark = #{remark,jdbcType=VARCHAR},
|
||||
IsDefault = #{isdefault,jdbcType=BIT},
|
||||
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