yujian
2020-06-09 554de444b87aab5f93cb1593a8095612cf9479a7
fanli/src/main/java/com/yeshi/fanli/mapping/money/ExtractCheckCompensateMapper.xml
@@ -1,78 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeshi.fanli.dao.mybatis.money.ExtractCheckCompensateMapper">
   <resultMap id="BaseResultMap"
      type="com.yeshi.fanli.entity.money.ExtractCheckCompensate">
      <id column="ecc_id" property="id" jdbcType="BIGINT" />
      <result column="ecc_money" property="money" jdbcType="DECIMAL" />
      <result column="ecc_beizhu" property="beiZhu" jdbcType="VARCHAR" />
      <result column="ecc_createtime" property="createTime" jdbcType="TIMESTAMP" />
      <result column="ecc_updatetime" property="updateTime" jdbcType="TIMESTAMP" />
      <association property="userInfo" column="ecc_uid"
         javaType="com.yeshi.fanli.entity.bus.user.UserInfo">
         <id column="ecc_uid" property="id" jdbcType="BIGINT" />
      </association>
   </resultMap>
   <sql id="Base_Column_List">ecc_id,ecc_uid,ecc_money,ecc_beizhu,ecc_createtime,ecc_updatetime
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap"
      parameterType="java.lang.Long">
      select
      <include refid="Base_Column_List" />
      from yeshi_ec_extract_check_compensate where ecc_id =
      #{id,jdbcType=BIGINT}
   </select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
      yeshi_ec_extract_check_compensate where ecc_id = #{id,jdbcType=BIGINT}
   </delete>
   <insert id="insert" parameterType="com.yeshi.fanli.entity.money.ExtractCheckCompensate"
      useGeneratedKeys="true" keyProperty="id">insert into
      yeshi_ec_extract_check_compensate
      (ecc_id,ecc_uid,ecc_money,ecc_beizhu,ecc_createtime,ecc_updatetime)
      values
      (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{money,jdbcType=DECIMAL},#{beiZhu,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.money.ExtractCheckCompensate"
      useGeneratedKeys="true" keyProperty="id">
      insert into yeshi_ec_extract_check_compensate
      <trim prefix="(" suffix=")" suffixOverrides=",">
         <if test="id != null">ecc_id,</if>
         <if test="userInfo != null">ecc_uid,</if>
         <if test="money != null">ecc_money,</if>
         <if test="beiZhu != null">ecc_beizhu,</if>
         <if test="createTime != null">ecc_createtime,</if>
         <if test="updateTime != null">ecc_updatetime,</if>
      </trim>
      values
      <trim prefix="(" suffix=")" suffixOverrides=",">
         <if test="id != null">#{id,jdbcType=BIGINT},</if>
         <if test="userInfo != null">#{userInfo.id,jdbcType=BIGINT},</if>
         <if test="money != null">#{money,jdbcType=DECIMAL},</if>
         <if test="beiZhu != null">#{beiZhu,jdbcType=VARCHAR},</if>
         <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
         <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
      </trim>
   </insert>
   <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.money.ExtractCheckCompensate">update
      yeshi_ec_extract_check_compensate set ecc_uid =
      #{userInfo.id,jdbcType=BIGINT},ecc_money =
      #{money,jdbcType=DECIMAL},ecc_beizhu =
      #{beiZhu,jdbcType=VARCHAR},ecc_createtime =
      #{createTime,jdbcType=TIMESTAMP},ecc_updatetime =
      #{updateTime,jdbcType=TIMESTAMP} where ecc_id = #{id,jdbcType=BIGINT}
   </update>
   <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.money.ExtractCheckCompensate">
      update yeshi_ec_extract_check_compensate
      <set>
         <if test="userInfo != null">ecc_uid=#{userInfo.id,jdbcType=BIGINT},</if>
         <if test="money != null">ecc_money=#{money,jdbcType=DECIMAL},</if>
         <if test="beiZhu != null">ecc_beizhu=#{beiZhu,jdbcType=VARCHAR},</if>
         <if test="createTime != null">ecc_createtime=#{createTime,jdbcType=TIMESTAMP},</if>
         <if test="updateTime != null">ecc_updatetime=#{updateTime,jdbcType=TIMESTAMP},</if>
      </set>
      where ecc_id = #{id,jdbcType=BIGINT}
   </update>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeshi.fanli.dao.mybatis.money.ExtractCheckCompensateMapper">
   <resultMap id="BaseResultMap"
      type="com.yeshi.fanli.entity.money.ExtractCheckCompensate">
      <id column="ecc_id" property="id" jdbcType="BIGINT" />
      <result column="ecc_money" property="money" jdbcType="DECIMAL" />
      <result column="ecc_beizhu" property="beiZhu" jdbcType="VARCHAR" />
      <result column="ecc_createtime" property="createTime" jdbcType="TIMESTAMP" />
      <result column="ecc_updatetime" property="updateTime" jdbcType="TIMESTAMP" />
      <association property="userInfo" column="ecc_uid"
         javaType="com.yeshi.fanli.entity.bus.user.UserInfo">
         <id column="ecc_uid" property="id" jdbcType="BIGINT" />
      </association>
   </resultMap>
   <sql id="Base_Column_List">ecc_id,ecc_uid,ecc_money,ecc_beizhu,ecc_createtime,ecc_updatetime
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap"
      parameterType="java.lang.Long">
      select
      <include refid="Base_Column_List" />
      from yeshi_ec_extract_check_compensate where ecc_id =
      #{id,jdbcType=BIGINT}
   </select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
      yeshi_ec_extract_check_compensate where ecc_id = #{id,jdbcType=BIGINT}
   </delete>
   <insert id="insert" parameterType="com.yeshi.fanli.entity.money.ExtractCheckCompensate"
      useGeneratedKeys="true" keyProperty="id">insert into
      yeshi_ec_extract_check_compensate
      (ecc_id,ecc_uid,ecc_money,ecc_beizhu,ecc_createtime,ecc_updatetime)
      values
      (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{money,jdbcType=DECIMAL},#{beiZhu,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.money.ExtractCheckCompensate"
      useGeneratedKeys="true" keyProperty="id">
      insert into yeshi_ec_extract_check_compensate
      <trim prefix="(" suffix=")" suffixOverrides=",">
         <if test="id != null">ecc_id,</if>
         <if test="userInfo != null">ecc_uid,</if>
         <if test="money != null">ecc_money,</if>
         <if test="beiZhu != null">ecc_beizhu,</if>
         <if test="createTime != null">ecc_createtime,</if>
         <if test="updateTime != null">ecc_updatetime,</if>
      </trim>
      values
      <trim prefix="(" suffix=")" suffixOverrides=",">
         <if test="id != null">#{id,jdbcType=BIGINT},</if>
         <if test="userInfo != null">#{userInfo.id,jdbcType=BIGINT},</if>
         <if test="money != null">#{money,jdbcType=DECIMAL},</if>
         <if test="beiZhu != null">#{beiZhu,jdbcType=VARCHAR},</if>
         <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
         <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
      </trim>
   </insert>
   <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.money.ExtractCheckCompensate">update
      yeshi_ec_extract_check_compensate set ecc_uid =
      #{userInfo.id,jdbcType=BIGINT},ecc_money =
      #{money,jdbcType=DECIMAL},ecc_beizhu =
      #{beiZhu,jdbcType=VARCHAR},ecc_createtime =
      #{createTime,jdbcType=TIMESTAMP},ecc_updatetime =
      #{updateTime,jdbcType=TIMESTAMP} where ecc_id = #{id,jdbcType=BIGINT}
   </update>
   <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.money.ExtractCheckCompensate">
      update yeshi_ec_extract_check_compensate
      <set>
         <if test="userInfo != null">ecc_uid=#{userInfo.id,jdbcType=BIGINT},</if>
         <if test="money != null">ecc_money=#{money,jdbcType=DECIMAL},</if>
         <if test="beiZhu != null">ecc_beizhu=#{beiZhu,jdbcType=VARCHAR},</if>
         <if test="createTime != null">ecc_createtime=#{createTime,jdbcType=TIMESTAMP},</if>
         <if test="updateTime != null">ecc_updatetime=#{updateTime,jdbcType=TIMESTAMP},</if>
      </set>
      where ecc_id = #{id,jdbcType=BIGINT}
   </update>
</mapper>