From 47d95b8eb347a7afe5e931664484f3b1949c88a7 Mon Sep 17 00:00:00 2001
From: lousailong <804521647@qq.com>
Date: Mon, 26 Feb 2024 11:24:47 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=94=9F=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../mybatis/mapper/WindowsRedeemMapper.xml    | 38 +++++++++++++++++--
 1 file changed, 35 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mybatis/mapper/WindowsRedeemMapper.xml b/src/main/resources/mybatis/mapper/WindowsRedeemMapper.xml
index 7dd979f..d57f536 100644
--- a/src/main/resources/mybatis/mapper/WindowsRedeemMapper.xml
+++ b/src/main/resources/mybatis/mapper/WindowsRedeemMapper.xml
@@ -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>
-- 
2.18.1