yujian
2019-01-22 88b54772dbcf5ecab1e2316e4e4626ac901b8908
fanli/src/main/java/com/yeshi/fanli/mapping/ExtractMapper.xml
@@ -5,6 +5,8 @@
      <id column="id" property="id" jdbcType="BIGINT" />
      <result column="account" property="account" jdbcType="VARCHAR" />
      <result column="extractTime" property="extractTime" jdbcType="BIGINT" />
      <result column="receiveTime" property="receiveTime" jdbcType="TIMESTAMP" />
      <result column="ip" property="ip" jdbcType="VARCHAR" />
      <result column="money" property="money" jdbcType="DECIMAL" />
      <result column="name" property="name" jdbcType="VARCHAR" />
@@ -23,7 +25,7 @@
   </resultMap>
   <sql id="Base_Column_List">
      id,account,extractTime,ip,money,name,reason,state,type,uid,sid,adminId
      id,account,extractTime,ip,money,name,reason,state,type,uid,sid,adminId,receiveTime
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap"
      parameterType="java.lang.Long">
@@ -52,7 +54,7 @@
   <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.Extract"
      useGeneratedKeys="true" keyProperty="id">
      insert into yeshi_ec_extract (id,
      account,extractTime,ip,money,name,reason,state,type,uid,sid,adminId)
      account,extractTime,ip,money,name,reason,state,type,uid,sid,adminId,receiveTime)
      values
      (#{id,jdbcType=BIGINT},
      #{account,jdbcType=VARCHAR},
@@ -65,7 +67,8 @@
      #{type,jdbcType=INTEGER},
      #{userInfo.id,jdbcType=BIGINT},
      #{system.id,jdbcType=BIGINT}
      #{adminId,jdbcType=BIGINT}
      #{adminId,jdbcType=BIGINT},
      #{receiveTime,jdbcType=TIMESTAMP}
      )
   </insert>
   <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.Extract"
@@ -110,6 +113,14 @@
         <if test="system != null">
            adminId,
         </if>
         <if test="receiveTime != null">
            receiveTime,
         </if>
      </trim>
      <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -149,6 +160,12 @@
         <if test="system != null">
            #{adminId,jdbcType=BIGINT},
         </if>
         <if test="receiveTime != null">
            #{receiveTime,jdbcType=TIMESTAMP},
         </if>
      </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.Extract">
@@ -194,6 +211,12 @@
         <if test="system != null">
            adminId = #{adminId,jdbcType=BIGINT},
         </if>
         <if test="receiveTime != null">
            #{receiveTime,jdbcType=TIMESTAMP},
         </if>
      </set>
      where id = #{id,jdbcType=BIGINT}
   </update>
@@ -222,7 +245,9 @@
      =#{adminId,jdbcType=BIGINT},
      sid
      =
      #{system.id,jdbcType=BIGINT}
      #{system.id,jdbcType=BIGINT},
      receiveTime
      =#{receiveTime,jdbcType=TIMESTAMP}
      where id =
      #{id,jdbcType=BIGINT}
   </update>