<?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.chaozhanggui.dao.system.dao.TbPlussPlatformDataMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussPlatformData">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="transAmt" jdbcType="DECIMAL" property="transamt" />
    <result column="aliAmt" jdbcType="DECIMAL" property="aliamt" />
    <result column="wxAmt" jdbcType="DECIMAL" property="wxamt" />
    <result column="ysfAmt" jdbcType="DECIMAL" property="ysfamt" />
    <result column="transNum" jdbcType="INTEGER" property="transnum" />
    <result column="aliNum" jdbcType="INTEGER" property="alinum" />
    <result column="wxNum" jdbcType="INTEGER" property="wxnum" />
    <result column="ysfNum" jdbcType="INTEGER" property="ysfnum" />
    <result column="refundAmt" jdbcType="DECIMAL" property="refundamt" />
    <result column="aliRefundAmt" jdbcType="DECIMAL" property="alirefundamt" />
    <result column="wxRefundAmt" jdbcType="DECIMAL" property="wxrefundamt" />
    <result column="ysfRefundAmt" jdbcType="DECIMAL" property="ysfrefundamt" />
    <result column="storeNum" jdbcType="INTEGER" property="storenum" />
    <result column="memberNum" jdbcType="INTEGER" property="membernum" />
    <result column="promoterNum" jdbcType="INTEGER" property="promoternum" />
    <result column="profitAmt" jdbcType="DECIMAL" property="profitamt" />
    <result column="shareAmt" jdbcType="DECIMAL" property="shareamt" />
    <result column="fansAmt" jdbcType="DECIMAL" property="fansamt" />
    <result column="actualAmt" jdbcType="DECIMAL" property="actualamt" />
    <result column="operatDate" jdbcType="VARCHAR" property="operatdate" />
    <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
    <result column="operateMonth" jdbcType="CHAR" property="operatemonth" />
  </resultMap>
  <sql id="Base_Column_List">
    id, transAmt, aliAmt, wxAmt, ysfAmt, transNum, aliNum, wxNum, ysfNum, refundAmt, 
    aliRefundAmt, wxRefundAmt, ysfRefundAmt, storeNum, memberNum, promoterNum, profitAmt, 
    shareAmt, fansAmt, actualAmt, operatDate, createTime, operateMonth
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_platform_data
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_platform_data
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussPlatformData">
    insert into tb_pluss_platform_data (id, transAmt, aliAmt, 
      wxAmt, ysfAmt, transNum, 
      aliNum, wxNum, ysfNum, 
      refundAmt, aliRefundAmt, wxRefundAmt, 
      ysfRefundAmt, storeNum, memberNum, 
      promoterNum, profitAmt, shareAmt, 
      fansAmt, actualAmt, operatDate, 
      createTime, operateMonth)
    values (#{id,jdbcType=INTEGER}, #{transamt,jdbcType=DECIMAL}, #{aliamt,jdbcType=DECIMAL}, 
      #{wxamt,jdbcType=DECIMAL}, #{ysfamt,jdbcType=DECIMAL}, #{transnum,jdbcType=INTEGER}, 
      #{alinum,jdbcType=INTEGER}, #{wxnum,jdbcType=INTEGER}, #{ysfnum,jdbcType=INTEGER}, 
      #{refundamt,jdbcType=DECIMAL}, #{alirefundamt,jdbcType=DECIMAL}, #{wxrefundamt,jdbcType=DECIMAL}, 
      #{ysfrefundamt,jdbcType=DECIMAL}, #{storenum,jdbcType=INTEGER}, #{membernum,jdbcType=INTEGER}, 
      #{promoternum,jdbcType=INTEGER}, #{profitamt,jdbcType=DECIMAL}, #{shareamt,jdbcType=DECIMAL}, 
      #{fansamt,jdbcType=DECIMAL}, #{actualamt,jdbcType=DECIMAL}, #{operatdate,jdbcType=VARCHAR}, 
      #{createtime,jdbcType=TIMESTAMP}, #{operatemonth,jdbcType=CHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussPlatformData">
    insert into tb_pluss_platform_data
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="transamt != null">
        transAmt,
      </if>
      <if test="aliamt != null">
        aliAmt,
      </if>
      <if test="wxamt != null">
        wxAmt,
      </if>
      <if test="ysfamt != null">
        ysfAmt,
      </if>
      <if test="transnum != null">
        transNum,
      </if>
      <if test="alinum != null">
        aliNum,
      </if>
      <if test="wxnum != null">
        wxNum,
      </if>
      <if test="ysfnum != null">
        ysfNum,
      </if>
      <if test="refundamt != null">
        refundAmt,
      </if>
      <if test="alirefundamt != null">
        aliRefundAmt,
      </if>
      <if test="wxrefundamt != null">
        wxRefundAmt,
      </if>
      <if test="ysfrefundamt != null">
        ysfRefundAmt,
      </if>
      <if test="storenum != null">
        storeNum,
      </if>
      <if test="membernum != null">
        memberNum,
      </if>
      <if test="promoternum != null">
        promoterNum,
      </if>
      <if test="profitamt != null">
        profitAmt,
      </if>
      <if test="shareamt != null">
        shareAmt,
      </if>
      <if test="fansamt != null">
        fansAmt,
      </if>
      <if test="actualamt != null">
        actualAmt,
      </if>
      <if test="operatdate != null">
        operatDate,
      </if>
      <if test="createtime != null">
        createTime,
      </if>
      <if test="operatemonth != null">
        operateMonth,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="transamt != null">
        #{transamt,jdbcType=DECIMAL},
      </if>
      <if test="aliamt != null">
        #{aliamt,jdbcType=DECIMAL},
      </if>
      <if test="wxamt != null">
        #{wxamt,jdbcType=DECIMAL},
      </if>
      <if test="ysfamt != null">
        #{ysfamt,jdbcType=DECIMAL},
      </if>
      <if test="transnum != null">
        #{transnum,jdbcType=INTEGER},
      </if>
      <if test="alinum != null">
        #{alinum,jdbcType=INTEGER},
      </if>
      <if test="wxnum != null">
        #{wxnum,jdbcType=INTEGER},
      </if>
      <if test="ysfnum != null">
        #{ysfnum,jdbcType=INTEGER},
      </if>
      <if test="refundamt != null">
        #{refundamt,jdbcType=DECIMAL},
      </if>
      <if test="alirefundamt != null">
        #{alirefundamt,jdbcType=DECIMAL},
      </if>
      <if test="wxrefundamt != null">
        #{wxrefundamt,jdbcType=DECIMAL},
      </if>
      <if test="ysfrefundamt != null">
        #{ysfrefundamt,jdbcType=DECIMAL},
      </if>
      <if test="storenum != null">
        #{storenum,jdbcType=INTEGER},
      </if>
      <if test="membernum != null">
        #{membernum,jdbcType=INTEGER},
      </if>
      <if test="promoternum != null">
        #{promoternum,jdbcType=INTEGER},
      </if>
      <if test="profitamt != null">
        #{profitamt,jdbcType=DECIMAL},
      </if>
      <if test="shareamt != null">
        #{shareamt,jdbcType=DECIMAL},
      </if>
      <if test="fansamt != null">
        #{fansamt,jdbcType=DECIMAL},
      </if>
      <if test="actualamt != null">
        #{actualamt,jdbcType=DECIMAL},
      </if>
      <if test="operatdate != null">
        #{operatdate,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="operatemonth != null">
        #{operatemonth,jdbcType=CHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussPlatformData">
    update tb_pluss_platform_data
    <set>
      <if test="transamt != null">
        transAmt = #{transamt,jdbcType=DECIMAL},
      </if>
      <if test="aliamt != null">
        aliAmt = #{aliamt,jdbcType=DECIMAL},
      </if>
      <if test="wxamt != null">
        wxAmt = #{wxamt,jdbcType=DECIMAL},
      </if>
      <if test="ysfamt != null">
        ysfAmt = #{ysfamt,jdbcType=DECIMAL},
      </if>
      <if test="transnum != null">
        transNum = #{transnum,jdbcType=INTEGER},
      </if>
      <if test="alinum != null">
        aliNum = #{alinum,jdbcType=INTEGER},
      </if>
      <if test="wxnum != null">
        wxNum = #{wxnum,jdbcType=INTEGER},
      </if>
      <if test="ysfnum != null">
        ysfNum = #{ysfnum,jdbcType=INTEGER},
      </if>
      <if test="refundamt != null">
        refundAmt = #{refundamt,jdbcType=DECIMAL},
      </if>
      <if test="alirefundamt != null">
        aliRefundAmt = #{alirefundamt,jdbcType=DECIMAL},
      </if>
      <if test="wxrefundamt != null">
        wxRefundAmt = #{wxrefundamt,jdbcType=DECIMAL},
      </if>
      <if test="ysfrefundamt != null">
        ysfRefundAmt = #{ysfrefundamt,jdbcType=DECIMAL},
      </if>
      <if test="storenum != null">
        storeNum = #{storenum,jdbcType=INTEGER},
      </if>
      <if test="membernum != null">
        memberNum = #{membernum,jdbcType=INTEGER},
      </if>
      <if test="promoternum != null">
        promoterNum = #{promoternum,jdbcType=INTEGER},
      </if>
      <if test="profitamt != null">
        profitAmt = #{profitamt,jdbcType=DECIMAL},
      </if>
      <if test="shareamt != null">
        shareAmt = #{shareamt,jdbcType=DECIMAL},
      </if>
      <if test="fansamt != null">
        fansAmt = #{fansamt,jdbcType=DECIMAL},
      </if>
      <if test="actualamt != null">
        actualAmt = #{actualamt,jdbcType=DECIMAL},
      </if>
      <if test="operatdate != null">
        operatDate = #{operatdate,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        createTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
      <if test="operatemonth != null">
        operateMonth = #{operatemonth,jdbcType=CHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussPlatformData">
    update tb_pluss_platform_data
    set transAmt = #{transamt,jdbcType=DECIMAL},
      aliAmt = #{aliamt,jdbcType=DECIMAL},
      wxAmt = #{wxamt,jdbcType=DECIMAL},
      ysfAmt = #{ysfamt,jdbcType=DECIMAL},
      transNum = #{transnum,jdbcType=INTEGER},
      aliNum = #{alinum,jdbcType=INTEGER},
      wxNum = #{wxnum,jdbcType=INTEGER},
      ysfNum = #{ysfnum,jdbcType=INTEGER},
      refundAmt = #{refundamt,jdbcType=DECIMAL},
      aliRefundAmt = #{alirefundamt,jdbcType=DECIMAL},
      wxRefundAmt = #{wxrefundamt,jdbcType=DECIMAL},
      ysfRefundAmt = #{ysfrefundamt,jdbcType=DECIMAL},
      storeNum = #{storenum,jdbcType=INTEGER},
      memberNum = #{membernum,jdbcType=INTEGER},
      promoterNum = #{promoternum,jdbcType=INTEGER},
      profitAmt = #{profitamt,jdbcType=DECIMAL},
      shareAmt = #{shareamt,jdbcType=DECIMAL},
      fansAmt = #{fansamt,jdbcType=DECIMAL},
      actualAmt = #{actualamt,jdbcType=DECIMAL},
      operatDate = #{operatdate,jdbcType=VARCHAR},
      createTime = #{createtime,jdbcType=TIMESTAMP},
      operateMonth = #{operatemonth,jdbcType=CHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>