<?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.dy.pipIrrGlobal.daoSt.StRechargeIcDayMapper"> 
 | 
  <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay"> 
 | 
    <!--@mbg.generated--> 
 | 
    <!--@Table st_recharge_ic_day--> 
 | 
    <id column="id" jdbcType="BIGINT" property="id" /> 
 | 
    <result column="client_id" jdbcType="BIGINT" property="clientId" /> 
 | 
    <result column="card_id" jdbcType="BIGINT" property="cardId" /> 
 | 
    <result column="year" jdbcType="INTEGER" property="year" /> 
 | 
    <result column="month" jdbcType="INTEGER" property="month" /> 
 | 
    <result column="amount1" jdbcType="FLOAT" property="amount1" /> 
 | 
    <result column="gift1" jdbcType="FLOAT" property="gift1" /> 
 | 
    <result column="times1" jdbcType="INTEGER" property="times1" /> 
 | 
    <result column="amount2" jdbcType="FLOAT" property="amount2" /> 
 | 
    <result column="gift2" jdbcType="FLOAT" property="gift2" /> 
 | 
    <result column="times2" jdbcType="INTEGER" property="times2" /> 
 | 
    <result column="amount3" jdbcType="FLOAT" property="amount3" /> 
 | 
    <result column="gift3" jdbcType="FLOAT" property="gift3" /> 
 | 
    <result column="times3" jdbcType="INTEGER" property="times3" /> 
 | 
    <result column="amount4" jdbcType="FLOAT" property="amount4" /> 
 | 
    <result column="gift4" jdbcType="FLOAT" property="gift4" /> 
 | 
    <result column="times4" jdbcType="INTEGER" property="times4" /> 
 | 
    <result column="amount5" jdbcType="FLOAT" property="amount5" /> 
 | 
    <result column="gift5" jdbcType="FLOAT" property="gift5" /> 
 | 
    <result column="times5" jdbcType="INTEGER" property="times5" /> 
 | 
    <result column="amount6" jdbcType="FLOAT" property="amount6" /> 
 | 
    <result column="gift6" jdbcType="FLOAT" property="gift6" /> 
 | 
    <result column="times6" jdbcType="INTEGER" property="times6" /> 
 | 
    <result column="amount7" jdbcType="FLOAT" property="amount7" /> 
 | 
    <result column="gift7" jdbcType="FLOAT" property="gift7" /> 
 | 
    <result column="times7" jdbcType="INTEGER" property="times7" /> 
 | 
    <result column="amount8" jdbcType="FLOAT" property="amount8" /> 
 | 
    <result column="gift8" jdbcType="FLOAT" property="gift8" /> 
 | 
    <result column="times8" jdbcType="INTEGER" property="times8" /> 
 | 
    <result column="amount9" jdbcType="FLOAT" property="amount9" /> 
 | 
    <result column="gift9" jdbcType="FLOAT" property="gift9" /> 
 | 
    <result column="times9" jdbcType="INTEGER" property="times9" /> 
 | 
    <result column="amount10" jdbcType="FLOAT" property="amount10" /> 
 | 
    <result column="gift10" jdbcType="FLOAT" property="gift10" /> 
 | 
    <result column="times10" jdbcType="INTEGER" property="times10" /> 
 | 
    <result column="amount11" jdbcType="FLOAT" property="amount11" /> 
 | 
    <result column="gift11" jdbcType="FLOAT" property="gift11" /> 
 | 
    <result column="times11" jdbcType="INTEGER" property="times11" /> 
 | 
    <result column="amount12" jdbcType="FLOAT" property="amount12" /> 
 | 
    <result column="gift12" jdbcType="FLOAT" property="gift12" /> 
 | 
    <result column="times12" jdbcType="INTEGER" property="times12" /> 
 | 
    <result column="amount13" jdbcType="FLOAT" property="amount13" /> 
 | 
    <result column="gift13" jdbcType="FLOAT" property="gift13" /> 
 | 
    <result column="times13" jdbcType="INTEGER" property="times13" /> 
 | 
    <result column="amount14" jdbcType="FLOAT" property="amount14" /> 
 | 
    <result column="gift14" jdbcType="FLOAT" property="gift14" /> 
 | 
    <result column="times14" jdbcType="INTEGER" property="times14" /> 
 | 
    <result column="amount15" jdbcType="FLOAT" property="amount15" /> 
 | 
    <result column="gift15" jdbcType="FLOAT" property="gift15" /> 
 | 
    <result column="times15" jdbcType="INTEGER" property="times15" /> 
 | 
    <result column="amount16" jdbcType="FLOAT" property="amount16" /> 
 | 
    <result column="gift16" jdbcType="FLOAT" property="gift16" /> 
 | 
    <result column="times16" jdbcType="INTEGER" property="times16" /> 
 | 
    <result column="amount17" jdbcType="FLOAT" property="amount17" /> 
 | 
    <result column="gift17" jdbcType="FLOAT" property="gift17" /> 
 | 
    <result column="times17" jdbcType="INTEGER" property="times17" /> 
 | 
    <result column="amount18" jdbcType="FLOAT" property="amount18" /> 
 | 
    <result column="gift18" jdbcType="FLOAT" property="gift18" /> 
 | 
    <result column="times18" jdbcType="INTEGER" property="times18" /> 
 | 
    <result column="amount19" jdbcType="FLOAT" property="amount19" /> 
 | 
    <result column="gift19" jdbcType="FLOAT" property="gift19" /> 
 | 
    <result column="times19" jdbcType="INTEGER" property="times19" /> 
 | 
    <result column="amount20" jdbcType="FLOAT" property="amount20" /> 
 | 
    <result column="gift20" jdbcType="FLOAT" property="gift20" /> 
 | 
    <result column="times20" jdbcType="INTEGER" property="times20" /> 
 | 
    <result column="amount21" jdbcType="FLOAT" property="amount21" /> 
 | 
    <result column="gift21" jdbcType="FLOAT" property="gift21" /> 
 | 
    <result column="times21" jdbcType="INTEGER" property="times21" /> 
 | 
    <result column="amount22" jdbcType="FLOAT" property="amount22" /> 
 | 
    <result column="gift22" jdbcType="FLOAT" property="gift22" /> 
 | 
    <result column="times22" jdbcType="INTEGER" property="times22" /> 
 | 
    <result column="amount23" jdbcType="FLOAT" property="amount23" /> 
 | 
    <result column="gift23" jdbcType="FLOAT" property="gift23" /> 
 | 
    <result column="times23" jdbcType="INTEGER" property="times23" /> 
 | 
    <result column="amount24" jdbcType="FLOAT" property="amount24" /> 
 | 
    <result column="gift24" jdbcType="FLOAT" property="gift24" /> 
 | 
    <result column="times24" jdbcType="INTEGER" property="times24" /> 
 | 
    <result column="amount25" jdbcType="FLOAT" property="amount25" /> 
 | 
    <result column="gift25" jdbcType="FLOAT" property="gift25" /> 
 | 
    <result column="times25" jdbcType="INTEGER" property="times25" /> 
 | 
    <result column="amount26" jdbcType="FLOAT" property="amount26" /> 
 | 
    <result column="gift26" jdbcType="FLOAT" property="gift26" /> 
 | 
    <result column="times26" jdbcType="INTEGER" property="times26" /> 
 | 
    <result column="amount27" jdbcType="FLOAT" property="amount27" /> 
 | 
    <result column="gift27" jdbcType="FLOAT" property="gift27" /> 
 | 
    <result column="times27" jdbcType="INTEGER" property="times27" /> 
 | 
    <result column="amount28" jdbcType="FLOAT" property="amount28" /> 
 | 
    <result column="gift28" jdbcType="FLOAT" property="gift28" /> 
 | 
    <result column="times28" jdbcType="INTEGER" property="times28" /> 
 | 
    <result column="amount29" jdbcType="FLOAT" property="amount29" /> 
 | 
    <result column="gift29" jdbcType="FLOAT" property="gift29" /> 
 | 
    <result column="times29" jdbcType="INTEGER" property="times29" /> 
 | 
    <result column="amount30" jdbcType="FLOAT" property="amount30" /> 
 | 
    <result column="gift30" jdbcType="FLOAT" property="gift30" /> 
 | 
    <result column="times30" jdbcType="INTEGER" property="times30" /> 
 | 
    <result column="amount31" jdbcType="FLOAT" property="amount31" /> 
 | 
    <result column="gift31" jdbcType="FLOAT" property="gift31" /> 
 | 
    <result column="times31" jdbcType="INTEGER" property="times31" /> 
 | 
  </resultMap> 
 | 
  <sql id="Base_Column_List"> 
 | 
    <!--@mbg.generated--> 
 | 
    id, client_id, card_id, `year`, `month`, amount1, gift1, times1, amount2, gift2,  
 | 
    times2, amount3, gift3, times3, amount4, gift4, times4, amount5, gift5, times5, amount6,  
 | 
    gift6, times6, amount7, gift7, times7, amount8, gift8, times8, amount9, gift9, times9,  
 | 
    amount10, gift10, times10, amount11, gift11, times11, amount12, gift12, times12,  
 | 
    amount13, gift13, times13, amount14, gift14, times14, amount15, gift15, times15,  
 | 
    amount16, gift16, times16, amount17, gift17, times17, amount18, gift18, times18,  
 | 
    amount19, gift19, times19, amount20, gift20, times20, amount21, gift21, times21,  
 | 
    amount22, gift22, times22, amount23, gift23, times23, amount24, gift24, times24,  
 | 
    amount25, gift25, times25, amount26, gift26, times26, amount27, gift27, times27,  
 | 
    amount28, gift28, times28, amount29, gift29, times29, amount30, gift30, times30,  
 | 
    amount31, gift31, times31 
 | 
  </sql> 
 | 
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> 
 | 
    <!--@mbg.generated--> 
 | 
    select  
 | 
    <include refid="Base_Column_List" /> 
 | 
    from st_recharge_ic_day 
 | 
    where id = #{id,jdbcType=BIGINT} 
 | 
  </select> 
 | 
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> 
 | 
    <!--@mbg.generated--> 
 | 
    delete from st_recharge_ic_day 
 | 
    where id = #{id,jdbcType=BIGINT} 
 | 
  </delete> 
 | 
  <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay"> 
 | 
    <!--@mbg.generated--> 
 | 
    insert into st_recharge_ic_day (id, client_id, card_id,  
 | 
      `year`, `month`, amount1,  
 | 
      gift1, times1, amount2,  
 | 
      gift2, times2, amount3,  
 | 
      gift3, times3, amount4,  
 | 
      gift4, times4, amount5,  
 | 
      gift5, times5, amount6,  
 | 
      gift6, times6, amount7,  
 | 
      gift7, times7, amount8,  
 | 
      gift8, times8, amount9,  
 | 
      gift9, times9, amount10,  
 | 
      gift10, times10, amount11,  
 | 
      gift11, times11, amount12,  
 | 
      gift12, times12, amount13,  
 | 
      gift13, times13, amount14,  
 | 
      gift14, times14, amount15,  
 | 
      gift15, times15, amount16,  
 | 
      gift16, times16, amount17,  
 | 
      gift17, times17, amount18,  
 | 
      gift18, times18, amount19,  
 | 
      gift19, times19, amount20,  
 | 
      gift20, times20, amount21,  
 | 
      gift21, times21, amount22,  
 | 
      gift22, times22, amount23,  
 | 
      gift23, times23, amount24,  
 | 
      gift24, times24, amount25,  
 | 
      gift25, times25, amount26,  
 | 
      gift26, times26, amount27,  
 | 
      gift27, times27, amount28,  
 | 
      gift28, times28, amount29,  
 | 
      gift29, times29, amount30,  
 | 
      gift30, times30, amount31,  
 | 
      gift31, times31) 
 | 
    values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT},  
 | 
      #{year,jdbcType=INTEGER}, #{month,jdbcType=INTEGER}, #{amount1,jdbcType=FLOAT},  
 | 
      #{gift1,jdbcType=FLOAT}, #{times1,jdbcType=INTEGER}, #{amount2,jdbcType=FLOAT},  
 | 
      #{gift2,jdbcType=FLOAT}, #{times2,jdbcType=INTEGER}, #{amount3,jdbcType=FLOAT},  
 | 
      #{gift3,jdbcType=FLOAT}, #{times3,jdbcType=INTEGER}, #{amount4,jdbcType=FLOAT},  
 | 
      #{gift4,jdbcType=FLOAT}, #{times4,jdbcType=INTEGER}, #{amount5,jdbcType=FLOAT},  
 | 
      #{gift5,jdbcType=FLOAT}, #{times5,jdbcType=INTEGER}, #{amount6,jdbcType=FLOAT},  
 | 
      #{gift6,jdbcType=FLOAT}, #{times6,jdbcType=INTEGER}, #{amount7,jdbcType=FLOAT},  
 | 
      #{gift7,jdbcType=FLOAT}, #{times7,jdbcType=INTEGER}, #{amount8,jdbcType=FLOAT},  
 | 
      #{gift8,jdbcType=FLOAT}, #{times8,jdbcType=INTEGER}, #{amount9,jdbcType=FLOAT},  
 | 
      #{gift9,jdbcType=FLOAT}, #{times9,jdbcType=INTEGER}, #{amount10,jdbcType=FLOAT},  
 | 
      #{gift10,jdbcType=FLOAT}, #{times10,jdbcType=INTEGER}, #{amount11,jdbcType=FLOAT},  
 | 
      #{gift11,jdbcType=FLOAT}, #{times11,jdbcType=INTEGER}, #{amount12,jdbcType=FLOAT},  
 | 
      #{gift12,jdbcType=FLOAT}, #{times12,jdbcType=INTEGER}, #{amount13,jdbcType=FLOAT},  
 | 
      #{gift13,jdbcType=FLOAT}, #{times13,jdbcType=INTEGER}, #{amount14,jdbcType=FLOAT},  
 | 
      #{gift14,jdbcType=FLOAT}, #{times14,jdbcType=INTEGER}, #{amount15,jdbcType=FLOAT},  
 | 
      #{gift15,jdbcType=FLOAT}, #{times15,jdbcType=INTEGER}, #{amount16,jdbcType=FLOAT},  
 | 
      #{gift16,jdbcType=FLOAT}, #{times16,jdbcType=INTEGER}, #{amount17,jdbcType=FLOAT},  
 | 
      #{gift17,jdbcType=FLOAT}, #{times17,jdbcType=INTEGER}, #{amount18,jdbcType=FLOAT},  
 | 
      #{gift18,jdbcType=FLOAT}, #{times18,jdbcType=INTEGER}, #{amount19,jdbcType=FLOAT},  
 | 
      #{gift19,jdbcType=FLOAT}, #{times19,jdbcType=INTEGER}, #{amount20,jdbcType=FLOAT},  
 | 
      #{gift20,jdbcType=FLOAT}, #{times20,jdbcType=INTEGER}, #{amount21,jdbcType=FLOAT},  
 | 
      #{gift21,jdbcType=FLOAT}, #{times21,jdbcType=INTEGER}, #{amount22,jdbcType=FLOAT},  
 | 
      #{gift22,jdbcType=FLOAT}, #{times22,jdbcType=INTEGER}, #{amount23,jdbcType=FLOAT},  
 | 
      #{gift23,jdbcType=FLOAT}, #{times23,jdbcType=INTEGER}, #{amount24,jdbcType=FLOAT},  
 | 
      #{gift24,jdbcType=FLOAT}, #{times24,jdbcType=INTEGER}, #{amount25,jdbcType=FLOAT},  
 | 
      #{gift25,jdbcType=FLOAT}, #{times25,jdbcType=INTEGER}, #{amount26,jdbcType=FLOAT},  
 | 
      #{gift26,jdbcType=FLOAT}, #{times26,jdbcType=INTEGER}, #{amount27,jdbcType=FLOAT},  
 | 
      #{gift27,jdbcType=FLOAT}, #{times27,jdbcType=INTEGER}, #{amount28,jdbcType=FLOAT},  
 | 
      #{gift28,jdbcType=FLOAT}, #{times28,jdbcType=INTEGER}, #{amount29,jdbcType=FLOAT},  
 | 
      #{gift29,jdbcType=FLOAT}, #{times29,jdbcType=INTEGER}, #{amount30,jdbcType=FLOAT},  
 | 
      #{gift30,jdbcType=FLOAT}, #{times30,jdbcType=INTEGER}, #{amount31,jdbcType=FLOAT},  
 | 
      #{gift31,jdbcType=FLOAT}, #{times31,jdbcType=INTEGER}) 
 | 
  </insert> 
 | 
  <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay"> 
 | 
    <!--@mbg.generated--> 
 | 
    insert into st_recharge_ic_day 
 | 
    <trim prefix="(" suffix=")" suffixOverrides=","> 
 | 
      <if test="id != null"> 
 | 
        id, 
 | 
      </if> 
 | 
      <if test="clientId != null"> 
 | 
        client_id, 
 | 
      </if> 
 | 
      <if test="cardId != null"> 
 | 
        card_id, 
 | 
      </if> 
 | 
      <if test="year != null"> 
 | 
        `year`, 
 | 
      </if> 
 | 
      <if test="month != null"> 
 | 
        `month`, 
 | 
      </if> 
 | 
      <if test="amount1 != null"> 
 | 
        amount1, 
 | 
      </if> 
 | 
      <if test="gift1 != null"> 
 | 
        gift1, 
 | 
      </if> 
 | 
      <if test="times1 != null"> 
 | 
        times1, 
 | 
      </if> 
 | 
      <if test="amount2 != null"> 
 | 
        amount2, 
 | 
      </if> 
 | 
      <if test="gift2 != null"> 
 | 
        gift2, 
 | 
      </if> 
 | 
      <if test="times2 != null"> 
 | 
        times2, 
 | 
      </if> 
 | 
      <if test="amount3 != null"> 
 | 
        amount3, 
 | 
      </if> 
 | 
      <if test="gift3 != null"> 
 | 
        gift3, 
 | 
      </if> 
 | 
      <if test="times3 != null"> 
 | 
        times3, 
 | 
      </if> 
 | 
      <if test="amount4 != null"> 
 | 
        amount4, 
 | 
      </if> 
 | 
      <if test="gift4 != null"> 
 | 
        gift4, 
 | 
      </if> 
 | 
      <if test="times4 != null"> 
 | 
        times4, 
 | 
      </if> 
 | 
      <if test="amount5 != null"> 
 | 
        amount5, 
 | 
      </if> 
 | 
      <if test="gift5 != null"> 
 | 
        gift5, 
 | 
      </if> 
 | 
      <if test="times5 != null"> 
 | 
        times5, 
 | 
      </if> 
 | 
      <if test="amount6 != null"> 
 | 
        amount6, 
 | 
      </if> 
 | 
      <if test="gift6 != null"> 
 | 
        gift6, 
 | 
      </if> 
 | 
      <if test="times6 != null"> 
 | 
        times6, 
 | 
      </if> 
 | 
      <if test="amount7 != null"> 
 | 
        amount7, 
 | 
      </if> 
 | 
      <if test="gift7 != null"> 
 | 
        gift7, 
 | 
      </if> 
 | 
      <if test="times7 != null"> 
 | 
        times7, 
 | 
      </if> 
 | 
      <if test="amount8 != null"> 
 | 
        amount8, 
 | 
      </if> 
 | 
      <if test="gift8 != null"> 
 | 
        gift8, 
 | 
      </if> 
 | 
      <if test="times8 != null"> 
 | 
        times8, 
 | 
      </if> 
 | 
      <if test="amount9 != null"> 
 | 
        amount9, 
 | 
      </if> 
 | 
      <if test="gift9 != null"> 
 | 
        gift9, 
 | 
      </if> 
 | 
      <if test="times9 != null"> 
 | 
        times9, 
 | 
      </if> 
 | 
      <if test="amount10 != null"> 
 | 
        amount10, 
 | 
      </if> 
 | 
      <if test="gift10 != null"> 
 | 
        gift10, 
 | 
      </if> 
 | 
      <if test="times10 != null"> 
 | 
        times10, 
 | 
      </if> 
 | 
      <if test="amount11 != null"> 
 | 
        amount11, 
 | 
      </if> 
 | 
      <if test="gift11 != null"> 
 | 
        gift11, 
 | 
      </if> 
 | 
      <if test="times11 != null"> 
 | 
        times11, 
 | 
      </if> 
 | 
      <if test="amount12 != null"> 
 | 
        amount12, 
 | 
      </if> 
 | 
      <if test="gift12 != null"> 
 | 
        gift12, 
 | 
      </if> 
 | 
      <if test="times12 != null"> 
 | 
        times12, 
 | 
      </if> 
 | 
      <if test="amount13 != null"> 
 | 
        amount13, 
 | 
      </if> 
 | 
      <if test="gift13 != null"> 
 | 
        gift13, 
 | 
      </if> 
 | 
      <if test="times13 != null"> 
 | 
        times13, 
 | 
      </if> 
 | 
      <if test="amount14 != null"> 
 | 
        amount14, 
 | 
      </if> 
 | 
      <if test="gift14 != null"> 
 | 
        gift14, 
 | 
      </if> 
 | 
      <if test="times14 != null"> 
 | 
        times14, 
 | 
      </if> 
 | 
      <if test="amount15 != null"> 
 | 
        amount15, 
 | 
      </if> 
 | 
      <if test="gift15 != null"> 
 | 
        gift15, 
 | 
      </if> 
 | 
      <if test="times15 != null"> 
 | 
        times15, 
 | 
      </if> 
 | 
      <if test="amount16 != null"> 
 | 
        amount16, 
 | 
      </if> 
 | 
      <if test="gift16 != null"> 
 | 
        gift16, 
 | 
      </if> 
 | 
      <if test="times16 != null"> 
 | 
        times16, 
 | 
      </if> 
 | 
      <if test="amount17 != null"> 
 | 
        amount17, 
 | 
      </if> 
 | 
      <if test="gift17 != null"> 
 | 
        gift17, 
 | 
      </if> 
 | 
      <if test="times17 != null"> 
 | 
        times17, 
 | 
      </if> 
 | 
      <if test="amount18 != null"> 
 | 
        amount18, 
 | 
      </if> 
 | 
      <if test="gift18 != null"> 
 | 
        gift18, 
 | 
      </if> 
 | 
      <if test="times18 != null"> 
 | 
        times18, 
 | 
      </if> 
 | 
      <if test="amount19 != null"> 
 | 
        amount19, 
 | 
      </if> 
 | 
      <if test="gift19 != null"> 
 | 
        gift19, 
 | 
      </if> 
 | 
      <if test="times19 != null"> 
 | 
        times19, 
 | 
      </if> 
 | 
      <if test="amount20 != null"> 
 | 
        amount20, 
 | 
      </if> 
 | 
      <if test="gift20 != null"> 
 | 
        gift20, 
 | 
      </if> 
 | 
      <if test="times20 != null"> 
 | 
        times20, 
 | 
      </if> 
 | 
      <if test="amount21 != null"> 
 | 
        amount21, 
 | 
      </if> 
 | 
      <if test="gift21 != null"> 
 | 
        gift21, 
 | 
      </if> 
 | 
      <if test="times21 != null"> 
 | 
        times21, 
 | 
      </if> 
 | 
      <if test="amount22 != null"> 
 | 
        amount22, 
 | 
      </if> 
 | 
      <if test="gift22 != null"> 
 | 
        gift22, 
 | 
      </if> 
 | 
      <if test="times22 != null"> 
 | 
        times22, 
 | 
      </if> 
 | 
      <if test="amount23 != null"> 
 | 
        amount23, 
 | 
      </if> 
 | 
      <if test="gift23 != null"> 
 | 
        gift23, 
 | 
      </if> 
 | 
      <if test="times23 != null"> 
 | 
        times23, 
 | 
      </if> 
 | 
      <if test="amount24 != null"> 
 | 
        amount24, 
 | 
      </if> 
 | 
      <if test="gift24 != null"> 
 | 
        gift24, 
 | 
      </if> 
 | 
      <if test="times24 != null"> 
 | 
        times24, 
 | 
      </if> 
 | 
      <if test="amount25 != null"> 
 | 
        amount25, 
 | 
      </if> 
 | 
      <if test="gift25 != null"> 
 | 
        gift25, 
 | 
      </if> 
 | 
      <if test="times25 != null"> 
 | 
        times25, 
 | 
      </if> 
 | 
      <if test="amount26 != null"> 
 | 
        amount26, 
 | 
      </if> 
 | 
      <if test="gift26 != null"> 
 | 
        gift26, 
 | 
      </if> 
 | 
      <if test="times26 != null"> 
 | 
        times26, 
 | 
      </if> 
 | 
      <if test="amount27 != null"> 
 | 
        amount27, 
 | 
      </if> 
 | 
      <if test="gift27 != null"> 
 | 
        gift27, 
 | 
      </if> 
 | 
      <if test="times27 != null"> 
 | 
        times27, 
 | 
      </if> 
 | 
      <if test="amount28 != null"> 
 | 
        amount28, 
 | 
      </if> 
 | 
      <if test="gift28 != null"> 
 | 
        gift28, 
 | 
      </if> 
 | 
      <if test="times28 != null"> 
 | 
        times28, 
 | 
      </if> 
 | 
      <if test="amount29 != null"> 
 | 
        amount29, 
 | 
      </if> 
 | 
      <if test="gift29 != null"> 
 | 
        gift29, 
 | 
      </if> 
 | 
      <if test="times29 != null"> 
 | 
        times29, 
 | 
      </if> 
 | 
      <if test="amount30 != null"> 
 | 
        amount30, 
 | 
      </if> 
 | 
      <if test="gift30 != null"> 
 | 
        gift30, 
 | 
      </if> 
 | 
      <if test="times30 != null"> 
 | 
        times30, 
 | 
      </if> 
 | 
      <if test="amount31 != null"> 
 | 
        amount31, 
 | 
      </if> 
 | 
      <if test="gift31 != null"> 
 | 
        gift31, 
 | 
      </if> 
 | 
      <if test="times31 != null"> 
 | 
        times31, 
 | 
      </if> 
 | 
    </trim> 
 | 
    <trim prefix="values (" suffix=")" suffixOverrides=","> 
 | 
      <if test="id != null"> 
 | 
        #{id,jdbcType=BIGINT}, 
 | 
      </if> 
 | 
      <if test="clientId != null"> 
 | 
        #{clientId,jdbcType=BIGINT}, 
 | 
      </if> 
 | 
      <if test="cardId != null"> 
 | 
        #{cardId,jdbcType=BIGINT}, 
 | 
      </if> 
 | 
      <if test="year != null"> 
 | 
        #{year,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="month != null"> 
 | 
        #{month,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount1 != null"> 
 | 
        #{amount1,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift1 != null"> 
 | 
        #{gift1,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times1 != null"> 
 | 
        #{times1,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount2 != null"> 
 | 
        #{amount2,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift2 != null"> 
 | 
        #{gift2,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times2 != null"> 
 | 
        #{times2,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount3 != null"> 
 | 
        #{amount3,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift3 != null"> 
 | 
        #{gift3,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times3 != null"> 
 | 
        #{times3,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount4 != null"> 
 | 
        #{amount4,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift4 != null"> 
 | 
        #{gift4,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times4 != null"> 
 | 
        #{times4,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount5 != null"> 
 | 
        #{amount5,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift5 != null"> 
 | 
        #{gift5,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times5 != null"> 
 | 
        #{times5,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount6 != null"> 
 | 
        #{amount6,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift6 != null"> 
 | 
        #{gift6,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times6 != null"> 
 | 
        #{times6,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount7 != null"> 
 | 
        #{amount7,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift7 != null"> 
 | 
        #{gift7,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times7 != null"> 
 | 
        #{times7,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount8 != null"> 
 | 
        #{amount8,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift8 != null"> 
 | 
        #{gift8,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times8 != null"> 
 | 
        #{times8,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount9 != null"> 
 | 
        #{amount9,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift9 != null"> 
 | 
        #{gift9,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times9 != null"> 
 | 
        #{times9,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount10 != null"> 
 | 
        #{amount10,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift10 != null"> 
 | 
        #{gift10,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times10 != null"> 
 | 
        #{times10,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount11 != null"> 
 | 
        #{amount11,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift11 != null"> 
 | 
        #{gift11,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times11 != null"> 
 | 
        #{times11,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount12 != null"> 
 | 
        #{amount12,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift12 != null"> 
 | 
        #{gift12,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times12 != null"> 
 | 
        #{times12,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount13 != null"> 
 | 
        #{amount13,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift13 != null"> 
 | 
        #{gift13,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times13 != null"> 
 | 
        #{times13,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount14 != null"> 
 | 
        #{amount14,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift14 != null"> 
 | 
        #{gift14,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times14 != null"> 
 | 
        #{times14,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount15 != null"> 
 | 
        #{amount15,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift15 != null"> 
 | 
        #{gift15,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times15 != null"> 
 | 
        #{times15,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount16 != null"> 
 | 
        #{amount16,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift16 != null"> 
 | 
        #{gift16,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times16 != null"> 
 | 
        #{times16,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount17 != null"> 
 | 
        #{amount17,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift17 != null"> 
 | 
        #{gift17,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times17 != null"> 
 | 
        #{times17,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount18 != null"> 
 | 
        #{amount18,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift18 != null"> 
 | 
        #{gift18,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times18 != null"> 
 | 
        #{times18,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount19 != null"> 
 | 
        #{amount19,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift19 != null"> 
 | 
        #{gift19,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times19 != null"> 
 | 
        #{times19,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount20 != null"> 
 | 
        #{amount20,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift20 != null"> 
 | 
        #{gift20,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times20 != null"> 
 | 
        #{times20,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount21 != null"> 
 | 
        #{amount21,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift21 != null"> 
 | 
        #{gift21,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times21 != null"> 
 | 
        #{times21,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount22 != null"> 
 | 
        #{amount22,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift22 != null"> 
 | 
        #{gift22,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times22 != null"> 
 | 
        #{times22,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount23 != null"> 
 | 
        #{amount23,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift23 != null"> 
 | 
        #{gift23,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times23 != null"> 
 | 
        #{times23,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount24 != null"> 
 | 
        #{amount24,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift24 != null"> 
 | 
        #{gift24,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times24 != null"> 
 | 
        #{times24,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount25 != null"> 
 | 
        #{amount25,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift25 != null"> 
 | 
        #{gift25,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times25 != null"> 
 | 
        #{times25,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount26 != null"> 
 | 
        #{amount26,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift26 != null"> 
 | 
        #{gift26,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times26 != null"> 
 | 
        #{times26,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount27 != null"> 
 | 
        #{amount27,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift27 != null"> 
 | 
        #{gift27,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times27 != null"> 
 | 
        #{times27,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount28 != null"> 
 | 
        #{amount28,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift28 != null"> 
 | 
        #{gift28,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times28 != null"> 
 | 
        #{times28,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount29 != null"> 
 | 
        #{amount29,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift29 != null"> 
 | 
        #{gift29,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times29 != null"> 
 | 
        #{times29,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount30 != null"> 
 | 
        #{amount30,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift30 != null"> 
 | 
        #{gift30,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times30 != null"> 
 | 
        #{times30,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount31 != null"> 
 | 
        #{amount31,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift31 != null"> 
 | 
        #{gift31,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times31 != null"> 
 | 
        #{times31,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
    </trim> 
 | 
  </insert> 
 | 
  <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay"> 
 | 
    <!--@mbg.generated--> 
 | 
    update st_recharge_ic_day 
 | 
    <set> 
 | 
      <if test="clientId != null"> 
 | 
        client_id = #{clientId,jdbcType=BIGINT}, 
 | 
      </if> 
 | 
      <if test="cardId != null"> 
 | 
        card_id = #{cardId,jdbcType=BIGINT}, 
 | 
      </if> 
 | 
      <if test="year != null"> 
 | 
        `year` = #{year,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="month != null"> 
 | 
        `month` = #{month,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount1 != null"> 
 | 
        amount1 = #{amount1,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift1 != null"> 
 | 
        gift1 = #{gift1,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times1 != null"> 
 | 
        times1 = #{times1,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount2 != null"> 
 | 
        amount2 = #{amount2,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift2 != null"> 
 | 
        gift2 = #{gift2,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times2 != null"> 
 | 
        times2 = #{times2,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount3 != null"> 
 | 
        amount3 = #{amount3,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift3 != null"> 
 | 
        gift3 = #{gift3,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times3 != null"> 
 | 
        times3 = #{times3,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount4 != null"> 
 | 
        amount4 = #{amount4,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift4 != null"> 
 | 
        gift4 = #{gift4,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times4 != null"> 
 | 
        times4 = #{times4,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount5 != null"> 
 | 
        amount5 = #{amount5,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift5 != null"> 
 | 
        gift5 = #{gift5,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times5 != null"> 
 | 
        times5 = #{times5,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount6 != null"> 
 | 
        amount6 = #{amount6,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift6 != null"> 
 | 
        gift6 = #{gift6,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times6 != null"> 
 | 
        times6 = #{times6,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount7 != null"> 
 | 
        amount7 = #{amount7,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift7 != null"> 
 | 
        gift7 = #{gift7,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times7 != null"> 
 | 
        times7 = #{times7,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount8 != null"> 
 | 
        amount8 = #{amount8,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift8 != null"> 
 | 
        gift8 = #{gift8,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times8 != null"> 
 | 
        times8 = #{times8,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount9 != null"> 
 | 
        amount9 = #{amount9,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift9 != null"> 
 | 
        gift9 = #{gift9,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times9 != null"> 
 | 
        times9 = #{times9,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount10 != null"> 
 | 
        amount10 = #{amount10,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift10 != null"> 
 | 
        gift10 = #{gift10,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times10 != null"> 
 | 
        times10 = #{times10,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount11 != null"> 
 | 
        amount11 = #{amount11,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift11 != null"> 
 | 
        gift11 = #{gift11,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times11 != null"> 
 | 
        times11 = #{times11,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount12 != null"> 
 | 
        amount12 = #{amount12,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift12 != null"> 
 | 
        gift12 = #{gift12,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times12 != null"> 
 | 
        times12 = #{times12,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount13 != null"> 
 | 
        amount13 = #{amount13,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift13 != null"> 
 | 
        gift13 = #{gift13,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times13 != null"> 
 | 
        times13 = #{times13,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount14 != null"> 
 | 
        amount14 = #{amount14,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift14 != null"> 
 | 
        gift14 = #{gift14,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times14 != null"> 
 | 
        times14 = #{times14,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount15 != null"> 
 | 
        amount15 = #{amount15,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift15 != null"> 
 | 
        gift15 = #{gift15,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times15 != null"> 
 | 
        times15 = #{times15,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount16 != null"> 
 | 
        amount16 = #{amount16,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift16 != null"> 
 | 
        gift16 = #{gift16,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times16 != null"> 
 | 
        times16 = #{times16,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount17 != null"> 
 | 
        amount17 = #{amount17,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift17 != null"> 
 | 
        gift17 = #{gift17,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times17 != null"> 
 | 
        times17 = #{times17,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount18 != null"> 
 | 
        amount18 = #{amount18,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift18 != null"> 
 | 
        gift18 = #{gift18,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times18 != null"> 
 | 
        times18 = #{times18,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount19 != null"> 
 | 
        amount19 = #{amount19,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift19 != null"> 
 | 
        gift19 = #{gift19,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times19 != null"> 
 | 
        times19 = #{times19,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount20 != null"> 
 | 
        amount20 = #{amount20,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift20 != null"> 
 | 
        gift20 = #{gift20,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times20 != null"> 
 | 
        times20 = #{times20,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount21 != null"> 
 | 
        amount21 = #{amount21,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift21 != null"> 
 | 
        gift21 = #{gift21,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times21 != null"> 
 | 
        times21 = #{times21,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount22 != null"> 
 | 
        amount22 = #{amount22,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift22 != null"> 
 | 
        gift22 = #{gift22,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times22 != null"> 
 | 
        times22 = #{times22,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount23 != null"> 
 | 
        amount23 = #{amount23,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift23 != null"> 
 | 
        gift23 = #{gift23,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times23 != null"> 
 | 
        times23 = #{times23,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount24 != null"> 
 | 
        amount24 = #{amount24,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift24 != null"> 
 | 
        gift24 = #{gift24,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times24 != null"> 
 | 
        times24 = #{times24,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount25 != null"> 
 | 
        amount25 = #{amount25,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift25 != null"> 
 | 
        gift25 = #{gift25,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times25 != null"> 
 | 
        times25 = #{times25,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount26 != null"> 
 | 
        amount26 = #{amount26,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift26 != null"> 
 | 
        gift26 = #{gift26,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times26 != null"> 
 | 
        times26 = #{times26,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount27 != null"> 
 | 
        amount27 = #{amount27,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift27 != null"> 
 | 
        gift27 = #{gift27,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times27 != null"> 
 | 
        times27 = #{times27,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount28 != null"> 
 | 
        amount28 = #{amount28,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift28 != null"> 
 | 
        gift28 = #{gift28,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times28 != null"> 
 | 
        times28 = #{times28,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount29 != null"> 
 | 
        amount29 = #{amount29,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift29 != null"> 
 | 
        gift29 = #{gift29,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times29 != null"> 
 | 
        times29 = #{times29,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount30 != null"> 
 | 
        amount30 = #{amount30,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift30 != null"> 
 | 
        gift30 = #{gift30,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times30 != null"> 
 | 
        times30 = #{times30,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
      <if test="amount31 != null"> 
 | 
        amount31 = #{amount31,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="gift31 != null"> 
 | 
        gift31 = #{gift31,jdbcType=FLOAT}, 
 | 
      </if> 
 | 
      <if test="times31 != null"> 
 | 
        times31 = #{times31,jdbcType=INTEGER}, 
 | 
      </if> 
 | 
    </set> 
 | 
    where id = #{id,jdbcType=BIGINT} 
 | 
  </update> 
 | 
  <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay"> 
 | 
    <!--@mbg.generated--> 
 | 
    update st_recharge_ic_day 
 | 
    set client_id = #{clientId,jdbcType=BIGINT}, 
 | 
      card_id = #{cardId,jdbcType=BIGINT}, 
 | 
      `year` = #{year,jdbcType=INTEGER}, 
 | 
      `month` = #{month,jdbcType=INTEGER}, 
 | 
      amount1 = #{amount1,jdbcType=FLOAT}, 
 | 
      gift1 = #{gift1,jdbcType=FLOAT}, 
 | 
      times1 = #{times1,jdbcType=INTEGER}, 
 | 
      amount2 = #{amount2,jdbcType=FLOAT}, 
 | 
      gift2 = #{gift2,jdbcType=FLOAT}, 
 | 
      times2 = #{times2,jdbcType=INTEGER}, 
 | 
      amount3 = #{amount3,jdbcType=FLOAT}, 
 | 
      gift3 = #{gift3,jdbcType=FLOAT}, 
 | 
      times3 = #{times3,jdbcType=INTEGER}, 
 | 
      amount4 = #{amount4,jdbcType=FLOAT}, 
 | 
      gift4 = #{gift4,jdbcType=FLOAT}, 
 | 
      times4 = #{times4,jdbcType=INTEGER}, 
 | 
      amount5 = #{amount5,jdbcType=FLOAT}, 
 | 
      gift5 = #{gift5,jdbcType=FLOAT}, 
 | 
      times5 = #{times5,jdbcType=INTEGER}, 
 | 
      amount6 = #{amount6,jdbcType=FLOAT}, 
 | 
      gift6 = #{gift6,jdbcType=FLOAT}, 
 | 
      times6 = #{times6,jdbcType=INTEGER}, 
 | 
      amount7 = #{amount7,jdbcType=FLOAT}, 
 | 
      gift7 = #{gift7,jdbcType=FLOAT}, 
 | 
      times7 = #{times7,jdbcType=INTEGER}, 
 | 
      amount8 = #{amount8,jdbcType=FLOAT}, 
 | 
      gift8 = #{gift8,jdbcType=FLOAT}, 
 | 
      times8 = #{times8,jdbcType=INTEGER}, 
 | 
      amount9 = #{amount9,jdbcType=FLOAT}, 
 | 
      gift9 = #{gift9,jdbcType=FLOAT}, 
 | 
      times9 = #{times9,jdbcType=INTEGER}, 
 | 
      amount10 = #{amount10,jdbcType=FLOAT}, 
 | 
      gift10 = #{gift10,jdbcType=FLOAT}, 
 | 
      times10 = #{times10,jdbcType=INTEGER}, 
 | 
      amount11 = #{amount11,jdbcType=FLOAT}, 
 | 
      gift11 = #{gift11,jdbcType=FLOAT}, 
 | 
      times11 = #{times11,jdbcType=INTEGER}, 
 | 
      amount12 = #{amount12,jdbcType=FLOAT}, 
 | 
      gift12 = #{gift12,jdbcType=FLOAT}, 
 | 
      times12 = #{times12,jdbcType=INTEGER}, 
 | 
      amount13 = #{amount13,jdbcType=FLOAT}, 
 | 
      gift13 = #{gift13,jdbcType=FLOAT}, 
 | 
      times13 = #{times13,jdbcType=INTEGER}, 
 | 
      amount14 = #{amount14,jdbcType=FLOAT}, 
 | 
      gift14 = #{gift14,jdbcType=FLOAT}, 
 | 
      times14 = #{times14,jdbcType=INTEGER}, 
 | 
      amount15 = #{amount15,jdbcType=FLOAT}, 
 | 
      gift15 = #{gift15,jdbcType=FLOAT}, 
 | 
      times15 = #{times15,jdbcType=INTEGER}, 
 | 
      amount16 = #{amount16,jdbcType=FLOAT}, 
 | 
      gift16 = #{gift16,jdbcType=FLOAT}, 
 | 
      times16 = #{times16,jdbcType=INTEGER}, 
 | 
      amount17 = #{amount17,jdbcType=FLOAT}, 
 | 
      gift17 = #{gift17,jdbcType=FLOAT}, 
 | 
      times17 = #{times17,jdbcType=INTEGER}, 
 | 
      amount18 = #{amount18,jdbcType=FLOAT}, 
 | 
      gift18 = #{gift18,jdbcType=FLOAT}, 
 | 
      times18 = #{times18,jdbcType=INTEGER}, 
 | 
      amount19 = #{amount19,jdbcType=FLOAT}, 
 | 
      gift19 = #{gift19,jdbcType=FLOAT}, 
 | 
      times19 = #{times19,jdbcType=INTEGER}, 
 | 
      amount20 = #{amount20,jdbcType=FLOAT}, 
 | 
      gift20 = #{gift20,jdbcType=FLOAT}, 
 | 
      times20 = #{times20,jdbcType=INTEGER}, 
 | 
      amount21 = #{amount21,jdbcType=FLOAT}, 
 | 
      gift21 = #{gift21,jdbcType=FLOAT}, 
 | 
      times21 = #{times21,jdbcType=INTEGER}, 
 | 
      amount22 = #{amount22,jdbcType=FLOAT}, 
 | 
      gift22 = #{gift22,jdbcType=FLOAT}, 
 | 
      times22 = #{times22,jdbcType=INTEGER}, 
 | 
      amount23 = #{amount23,jdbcType=FLOAT}, 
 | 
      gift23 = #{gift23,jdbcType=FLOAT}, 
 | 
      times23 = #{times23,jdbcType=INTEGER}, 
 | 
      amount24 = #{amount24,jdbcType=FLOAT}, 
 | 
      gift24 = #{gift24,jdbcType=FLOAT}, 
 | 
      times24 = #{times24,jdbcType=INTEGER}, 
 | 
      amount25 = #{amount25,jdbcType=FLOAT}, 
 | 
      gift25 = #{gift25,jdbcType=FLOAT}, 
 | 
      times25 = #{times25,jdbcType=INTEGER}, 
 | 
      amount26 = #{amount26,jdbcType=FLOAT}, 
 | 
      gift26 = #{gift26,jdbcType=FLOAT}, 
 | 
      times26 = #{times26,jdbcType=INTEGER}, 
 | 
      amount27 = #{amount27,jdbcType=FLOAT}, 
 | 
      gift27 = #{gift27,jdbcType=FLOAT}, 
 | 
      times27 = #{times27,jdbcType=INTEGER}, 
 | 
      amount28 = #{amount28,jdbcType=FLOAT}, 
 | 
      gift28 = #{gift28,jdbcType=FLOAT}, 
 | 
      times28 = #{times28,jdbcType=INTEGER}, 
 | 
      amount29 = #{amount29,jdbcType=FLOAT}, 
 | 
      gift29 = #{gift29,jdbcType=FLOAT}, 
 | 
      times29 = #{times29,jdbcType=INTEGER}, 
 | 
      amount30 = #{amount30,jdbcType=FLOAT}, 
 | 
      gift30 = #{gift30,jdbcType=FLOAT}, 
 | 
      times30 = #{times30,jdbcType=INTEGER}, 
 | 
      amount31 = #{amount31,jdbcType=FLOAT}, 
 | 
      gift31 = #{gift31,jdbcType=FLOAT}, 
 | 
      times31 = #{times31,jdbcType=INTEGER} 
 | 
    where id = #{id,jdbcType=BIGINT} 
 | 
  </update> 
 | 
  
 | 
  
 | 
  <!-- //////////////////////////////////// --> 
 | 
  <!-- //统计相关                         // --> 
 | 
  <!-- //////////////////////////////////// --> 
 | 
  <select id="statisticsByIc" resultType="com.dy.pipIrrGlobal.voSt.VoIcRechargeStatistics"> 
 | 
    select client_id as clientId, 
 | 
    card_id as cardId, 
 | 
    sum( 
 | 
    IFNULL(amount1,0) + IFNULL(amount2,0) + IFNULL(amount3,0) + IFNULL(amount4,0) + IFNULL(amount5,0) + IFNULL(amount6,0) + IFNULL(amount7,0) + IFNULL(amount8,0) + IFNULL(amount9,0) + 
 | 
    IFNULL(amount10,0) + IFNULL(amount11,0) + IFNULL(amount12,0) + IFNULL(amount13,0) + IFNULL(amount14,0) + IFNULL(amount15,0) + IFNULL(amount16,0) + IFNULL(amount17,0) + IFNULL(amount18,0) + IFNULL(amount19,0) + 
 | 
    IFNULL(amount20,0) + IFNULL(amount21,0) + IFNULL(amount22,0) + IFNULL(amount23,0) + IFNULL(amount24,0) + IFNULL(amount25,0) + IFNULL(amount26,0) + IFNULL(amount27,0) + IFNULL(amount28,0) + IFNULL(amount29,0) + 
 | 
    IFNULL(amount30,0) + IFNULL(amount31,0) 
 | 
    ) as amount, 
 | 
    sum( 
 | 
    IFNULL(gift1,0) + IFNULL(gift2,0) + IFNULL(gift3,0) + IFNULL(gift4,0) + IFNULL(gift5,0) + IFNULL(gift6,0) + IFNULL(gift7,0) + IFNULL(gift8,0) + IFNULL(gift9,0) + 
 | 
    IFNULL(gift10,0) + IFNULL(gift11,0) + IFNULL(gift12,0) + IFNULL(gift13,0) + IFNULL(gift14,0) + IFNULL(gift15,0) + IFNULL(gift16,0) + IFNULL(gift17,0) + IFNULL(gift18,0) + IFNULL(gift19,0) + 
 | 
    IFNULL(gift20,0) + IFNULL(gift21,0) + IFNULL(gift22,0) + IFNULL(gift23,0) + IFNULL(gift24,0) + IFNULL(gift25,0) + IFNULL(gift26,0) + IFNULL(gift27,0) + IFNULL(gift28,0) + IFNULL(gift29,0) + 
 | 
    IFNULL(gift30,0) + IFNULL(gift31,0) 
 | 
    ) as gift, 
 | 
    sum( 
 | 
    IFNULL(times1,0) + IFNULL(times2,0) + IFNULL(times3,0) + IFNULL(times4,0) + IFNULL(times5,0) + IFNULL(times6,0) + IFNULL(times7,0) + IFNULL(times8,0) + IFNULL(times9,0) + 
 | 
    IFNULL(times10,0) + IFNULL(times11,0) + IFNULL(times12,0) + IFNULL(times13,0) + IFNULL(times14,0) + IFNULL(times15,0) + IFNULL(times16,0) + IFNULL(times17,0) + IFNULL(times18,0) + IFNULL(times19,0) + 
 | 
    IFNULL(times20,0) + IFNULL(times21,0) + IFNULL(times22,0) + IFNULL(times23,0) + IFNULL(times24,0) + IFNULL(times25,0) + IFNULL(times26,0) + IFNULL(times27,0) + IFNULL(times28,0) + IFNULL(times29,0) + 
 | 
    IFNULL(times30,0) + IFNULL(times31,0) 
 | 
    ) as times 
 | 
    from st_recharge_ic_day 
 | 
    where year = #{year, jdbcType=INTEGER} 
 | 
    and month = #{month, jdbcType=INTEGER} 
 | 
    group by client_id, card_id 
 | 
  </select> 
 | 
  
 | 
  <select id="selectByClientAndCardAndYearAndMonth" resultType="com.dy.pipIrrGlobal.pojoSt.StRechargeIcDay"> 
 | 
        select 
 | 
        <include refid="Base_Column_List" /> 
 | 
        from st_recharge_ic_day 
 | 
        where client_id = #{clientId,jdbcType=BIGINT} 
 | 
        and card_id = #{cardId,jdbcType=BIGINT} 
 | 
        and year = #{year,jdbcType=INTEGER} 
 | 
        and month = #{month,jdbcType=INTEGER} 
 | 
  </select> 
 | 
  
 | 
</mapper> 
 |