Commit 47d95b8e authored by LSL's avatar LSL

字段生成

parent cae6a7af
......@@ -14,6 +14,8 @@
<result column="redeem_xi" jdbcType="VARCHAR" property="redeemXi" />
<result column="redeem_fa" jdbcType="VARCHAR" property="redeemFa" />
<result column="redeem_amount" jdbcType="VARCHAR" property="redeemAmount" />
<result column="gmt_created" jdbcType="TIMESTAMP" property="gmtCreated" />
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
<result column="memo" jdbcType="VARCHAR" property="memo" />
</resultMap>
<sql id="Example_Where_Clause">
......@@ -76,7 +78,7 @@
</sql>
<sql id="Base_Column_List">
id, loan_no, plan_no, redeem_type, plan_index, raise_time, backed_time, hold_day,
redeem_ben, redeem_xi, redeem_fa, redeem_amount, memo
redeem_ben, redeem_xi, redeem_fa, redeem_amount, gmt_created, gmt_modified, memo
</sql>
<select id="selectByExample" parameterType="com.jqtx.windows.repository.entity.WindowsRedeemExample" resultMap="BaseResultMap">
select
......@@ -113,12 +115,14 @@
redeem_type, plan_index, raise_time,
backed_time, hold_day, redeem_ben,
redeem_xi, redeem_fa, redeem_amount,
memo)
gmt_created, gmt_modified, memo
)
values (#{id,jdbcType=INTEGER}, #{loanNo,jdbcType=VARCHAR}, #{planNo,jdbcType=VARCHAR},
#{redeemType,jdbcType=VARCHAR}, #{planIndex,jdbcType=VARCHAR}, #{raiseTime,jdbcType=VARCHAR},
#{backedTime,jdbcType=VARCHAR}, #{holdDay,jdbcType=VARCHAR}, #{redeemBen,jdbcType=VARCHAR},
#{redeemXi,jdbcType=VARCHAR}, #{redeemFa,jdbcType=VARCHAR}, #{redeemAmount,jdbcType=VARCHAR},
#{memo,jdbcType=VARCHAR})
#{gmtCreated,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{memo,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.jqtx.windows.repository.entity.WindowsRedeem">
insert into windows_redeem
......@@ -159,6 +163,12 @@
<if test="redeemAmount != null">
redeem_amount,
</if>
<if test="gmtCreated != null">
gmt_created,
</if>
<if test="gmtModified != null">
gmt_modified,
</if>
<if test="memo != null">
memo,
</if>
......@@ -200,6 +210,12 @@
<if test="redeemAmount != null">
#{redeemAmount,jdbcType=VARCHAR},
</if>
<if test="gmtCreated != null">
#{gmtCreated,jdbcType=TIMESTAMP},
</if>
<if test="gmtModified != null">
#{gmtModified,jdbcType=TIMESTAMP},
</if>
<if test="memo != null">
#{memo,jdbcType=VARCHAR},
</if>
......@@ -250,6 +266,12 @@
<if test="row.redeemAmount != null">
redeem_amount = #{row.redeemAmount,jdbcType=VARCHAR},
</if>
<if test="row.gmtCreated != null">
gmt_created = #{row.gmtCreated,jdbcType=TIMESTAMP},
</if>
<if test="row.gmtModified != null">
gmt_modified = #{row.gmtModified,jdbcType=TIMESTAMP},
</if>
<if test="row.memo != null">
memo = #{row.memo,jdbcType=VARCHAR},
</if>
......@@ -272,6 +294,8 @@
redeem_xi = #{row.redeemXi,jdbcType=VARCHAR},
redeem_fa = #{row.redeemFa,jdbcType=VARCHAR},
redeem_amount = #{row.redeemAmount,jdbcType=VARCHAR},
gmt_created = #{row.gmtCreated,jdbcType=TIMESTAMP},
gmt_modified = #{row.gmtModified,jdbcType=TIMESTAMP},
memo = #{row.memo,jdbcType=VARCHAR}
<if test="example != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -313,6 +337,12 @@
<if test="redeemAmount != null">
redeem_amount = #{redeemAmount,jdbcType=VARCHAR},
</if>
<if test="gmtCreated != null">
gmt_created = #{gmtCreated,jdbcType=TIMESTAMP},
</if>
<if test="gmtModified != null">
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
</if>
<if test="memo != null">
memo = #{memo,jdbcType=VARCHAR},
</if>
......@@ -332,6 +362,8 @@
redeem_xi = #{redeemXi,jdbcType=VARCHAR},
redeem_fa = #{redeemFa,jdbcType=VARCHAR},
redeem_amount = #{redeemAmount,jdbcType=VARCHAR},
gmt_created = #{gmtCreated,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
memo = #{memo,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment