id, client_id, card_id, `year`, `month`, amount1, times1, amount2, times2, amount3, 
    times3, amount4, times4, amount5, times5, amount6, times6, amount7, times7, amount8, 
    times8, amount9, times9, amount10, times10, amount11, times11, amount12, times12, 
    amount13, times13, amount14, times14, amount15, times15, amount16, times16, amount17, 
    times17, amount18, times18, amount19, times19, amount20, times20, amount21, times21, 
    amount22, times22, amount23, times23, amount24, times24, amount25, times25, amount26, 
    times26, amount27, times27, amount28, times28, amount29, times29, amount30, times30, 
    amount31, times31
  
  
  
    
    delete from st_consume_ic_day
    where id = #{id,jdbcType=BIGINT}
  
  
    
    insert into st_consume_ic_day (id, client_id, card_id, 
      `year`, `month`, amount1, 
      times1, amount2, times2, 
      amount3, times3, amount4, 
      times4, amount5, times5, 
      amount6, times6, amount7, 
      times7, amount8, times8, 
      amount9, times9, amount10, 
      times10, amount11, times11, 
      amount12, times12, amount13, 
      times13, amount14, times14, 
      amount15, times15, amount16, 
      times16, amount17, times17, 
      amount18, times18, amount19, 
      times19, amount20, times20, 
      amount21, times21, amount22, 
      times22, amount23, times23, 
      amount24, times24, amount25, 
      times25, amount26, times26, 
      amount27, times27, amount28, 
      times28, amount29, times29, 
      amount30, times30, amount31, 
      times31)
    values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{cardId,jdbcType=BIGINT}, 
      #{year,jdbcType=INTEGER}, #{month,jdbcType=INTEGER}, #{amount1,jdbcType=FLOAT}, 
      #{times1,jdbcType=INTEGER}, #{amount2,jdbcType=FLOAT}, #{times2,jdbcType=INTEGER}, 
      #{amount3,jdbcType=FLOAT}, #{times3,jdbcType=INTEGER}, #{amount4,jdbcType=FLOAT}, 
      #{times4,jdbcType=INTEGER}, #{amount5,jdbcType=FLOAT}, #{times5,jdbcType=INTEGER}, 
      #{amount6,jdbcType=FLOAT}, #{times6,jdbcType=INTEGER}, #{amount7,jdbcType=FLOAT}, 
      #{times7,jdbcType=INTEGER}, #{amount8,jdbcType=FLOAT}, #{times8,jdbcType=INTEGER}, 
      #{amount9,jdbcType=FLOAT}, #{times9,jdbcType=INTEGER}, #{amount10,jdbcType=FLOAT}, 
      #{times10,jdbcType=INTEGER}, #{amount11,jdbcType=FLOAT}, #{times11,jdbcType=INTEGER}, 
      #{amount12,jdbcType=FLOAT}, #{times12,jdbcType=INTEGER}, #{amount13,jdbcType=FLOAT}, 
      #{times13,jdbcType=INTEGER}, #{amount14,jdbcType=FLOAT}, #{times14,jdbcType=INTEGER}, 
      #{amount15,jdbcType=FLOAT}, #{times15,jdbcType=INTEGER}, #{amount16,jdbcType=FLOAT}, 
      #{times16,jdbcType=INTEGER}, #{amount17,jdbcType=FLOAT}, #{times17,jdbcType=INTEGER}, 
      #{amount18,jdbcType=FLOAT}, #{times18,jdbcType=INTEGER}, #{amount19,jdbcType=FLOAT}, 
      #{times19,jdbcType=INTEGER}, #{amount20,jdbcType=FLOAT}, #{times20,jdbcType=INTEGER}, 
      #{amount21,jdbcType=FLOAT}, #{times21,jdbcType=INTEGER}, #{amount22,jdbcType=FLOAT}, 
      #{times22,jdbcType=INTEGER}, #{amount23,jdbcType=FLOAT}, #{times23,jdbcType=INTEGER}, 
      #{amount24,jdbcType=FLOAT}, #{times24,jdbcType=INTEGER}, #{amount25,jdbcType=FLOAT}, 
      #{times25,jdbcType=INTEGER}, #{amount26,jdbcType=FLOAT}, #{times26,jdbcType=INTEGER}, 
      #{amount27,jdbcType=FLOAT}, #{times27,jdbcType=INTEGER}, #{amount28,jdbcType=FLOAT}, 
      #{times28,jdbcType=INTEGER}, #{amount29,jdbcType=FLOAT}, #{times29,jdbcType=INTEGER}, 
      #{amount30,jdbcType=FLOAT}, #{times30,jdbcType=INTEGER}, #{amount31,jdbcType=FLOAT}, 
      #{times31,jdbcType=INTEGER})
  
  
    
    insert into st_consume_ic_day
    
      
        id,
      
      
        client_id,
      
      
        card_id,
      
      
        `year`,
      
      
        `month`,
      
      
        amount1,
      
      
        times1,
      
      
        amount2,
      
      
        times2,
      
      
        amount3,
      
      
        times3,
      
      
        amount4,
      
      
        times4,
      
      
        amount5,
      
      
        times5,
      
      
        amount6,
      
      
        times6,
      
      
        amount7,
      
      
        times7,
      
      
        amount8,
      
      
        times8,
      
      
        amount9,
      
      
        times9,
      
      
        amount10,
      
      
        times10,
      
      
        amount11,
      
      
        times11,
      
      
        amount12,
      
      
        times12,
      
      
        amount13,
      
      
        times13,
      
      
        amount14,
      
      
        times14,
      
      
        amount15,
      
      
        times15,
      
      
        amount16,
      
      
        times16,
      
      
        amount17,
      
      
        times17,
      
      
        amount18,
      
      
        times18,
      
      
        amount19,
      
      
        times19,
      
      
        amount20,
      
      
        times20,
      
      
        amount21,
      
      
        times21,
      
      
        amount22,
      
      
        times22,
      
      
        amount23,
      
      
        times23,
      
      
        amount24,
      
      
        times24,
      
      
        amount25,
      
      
        times25,
      
      
        amount26,
      
      
        times26,
      
      
        amount27,
      
      
        times27,
      
      
        amount28,
      
      
        times28,
      
      
        amount29,
      
      
        times29,
      
      
        amount30,
      
      
        times30,
      
      
        amount31,
      
      
        times31,
      
    
    
      
        #{id,jdbcType=BIGINT},
      
      
        #{clientId,jdbcType=BIGINT},
      
      
        #{cardId,jdbcType=BIGINT},
      
      
        #{year,jdbcType=INTEGER},
      
      
        #{month,jdbcType=INTEGER},
      
      
        #{amount1,jdbcType=FLOAT},
      
      
        #{times1,jdbcType=INTEGER},
      
      
        #{amount2,jdbcType=FLOAT},
      
      
        #{times2,jdbcType=INTEGER},
      
      
        #{amount3,jdbcType=FLOAT},
      
      
        #{times3,jdbcType=INTEGER},
      
      
        #{amount4,jdbcType=FLOAT},
      
      
        #{times4,jdbcType=INTEGER},
      
      
        #{amount5,jdbcType=FLOAT},
      
      
        #{times5,jdbcType=INTEGER},
      
      
        #{amount6,jdbcType=FLOAT},
      
      
        #{times6,jdbcType=INTEGER},
      
      
        #{amount7,jdbcType=FLOAT},
      
      
        #{times7,jdbcType=INTEGER},
      
      
        #{amount8,jdbcType=FLOAT},
      
      
        #{times8,jdbcType=INTEGER},
      
      
        #{amount9,jdbcType=FLOAT},
      
      
        #{times9,jdbcType=INTEGER},
      
      
        #{amount10,jdbcType=FLOAT},
      
      
        #{times10,jdbcType=INTEGER},
      
      
        #{amount11,jdbcType=FLOAT},
      
      
        #{times11,jdbcType=INTEGER},
      
      
        #{amount12,jdbcType=FLOAT},
      
      
        #{times12,jdbcType=INTEGER},
      
      
        #{amount13,jdbcType=FLOAT},
      
      
        #{times13,jdbcType=INTEGER},
      
      
        #{amount14,jdbcType=FLOAT},
      
      
        #{times14,jdbcType=INTEGER},
      
      
        #{amount15,jdbcType=FLOAT},
      
      
        #{times15,jdbcType=INTEGER},
      
      
        #{amount16,jdbcType=FLOAT},
      
      
        #{times16,jdbcType=INTEGER},
      
      
        #{amount17,jdbcType=FLOAT},
      
      
        #{times17,jdbcType=INTEGER},
      
      
        #{amount18,jdbcType=FLOAT},
      
      
        #{times18,jdbcType=INTEGER},
      
      
        #{amount19,jdbcType=FLOAT},
      
      
        #{times19,jdbcType=INTEGER},
      
      
        #{amount20,jdbcType=FLOAT},
      
      
        #{times20,jdbcType=INTEGER},
      
      
        #{amount21,jdbcType=FLOAT},
      
      
        #{times21,jdbcType=INTEGER},
      
      
        #{amount22,jdbcType=FLOAT},
      
      
        #{times22,jdbcType=INTEGER},
      
      
        #{amount23,jdbcType=FLOAT},
      
      
        #{times23,jdbcType=INTEGER},
      
      
        #{amount24,jdbcType=FLOAT},
      
      
        #{times24,jdbcType=INTEGER},
      
      
        #{amount25,jdbcType=FLOAT},
      
      
        #{times25,jdbcType=INTEGER},
      
      
        #{amount26,jdbcType=FLOAT},
      
      
        #{times26,jdbcType=INTEGER},
      
      
        #{amount27,jdbcType=FLOAT},
      
      
        #{times27,jdbcType=INTEGER},
      
      
        #{amount28,jdbcType=FLOAT},
      
      
        #{times28,jdbcType=INTEGER},
      
      
        #{amount29,jdbcType=FLOAT},
      
      
        #{times29,jdbcType=INTEGER},
      
      
        #{amount30,jdbcType=FLOAT},
      
      
        #{times30,jdbcType=INTEGER},
      
      
        #{amount31,jdbcType=FLOAT},
      
      
        #{times31,jdbcType=INTEGER},
      
    
  
  
    
    update st_consume_ic_day
    
      
        client_id = #{clientId,jdbcType=BIGINT},
      
      
        card_id = #{cardId,jdbcType=BIGINT},
      
      
        `year` = #{year,jdbcType=INTEGER},
      
      
        `month` = #{month,jdbcType=INTEGER},
      
      
        amount1 = #{amount1,jdbcType=FLOAT},
      
      
        times1 = #{times1,jdbcType=INTEGER},
      
      
        amount2 = #{amount2,jdbcType=FLOAT},
      
      
        times2 = #{times2,jdbcType=INTEGER},
      
      
        amount3 = #{amount3,jdbcType=FLOAT},
      
      
        times3 = #{times3,jdbcType=INTEGER},
      
      
        amount4 = #{amount4,jdbcType=FLOAT},
      
      
        times4 = #{times4,jdbcType=INTEGER},
      
      
        amount5 = #{amount5,jdbcType=FLOAT},
      
      
        times5 = #{times5,jdbcType=INTEGER},
      
      
        amount6 = #{amount6,jdbcType=FLOAT},
      
      
        times6 = #{times6,jdbcType=INTEGER},
      
      
        amount7 = #{amount7,jdbcType=FLOAT},
      
      
        times7 = #{times7,jdbcType=INTEGER},
      
      
        amount8 = #{amount8,jdbcType=FLOAT},
      
      
        times8 = #{times8,jdbcType=INTEGER},
      
      
        amount9 = #{amount9,jdbcType=FLOAT},
      
      
        times9 = #{times9,jdbcType=INTEGER},
      
      
        amount10 = #{amount10,jdbcType=FLOAT},
      
      
        times10 = #{times10,jdbcType=INTEGER},
      
      
        amount11 = #{amount11,jdbcType=FLOAT},
      
      
        times11 = #{times11,jdbcType=INTEGER},
      
      
        amount12 = #{amount12,jdbcType=FLOAT},
      
      
        times12 = #{times12,jdbcType=INTEGER},
      
      
        amount13 = #{amount13,jdbcType=FLOAT},
      
      
        times13 = #{times13,jdbcType=INTEGER},
      
      
        amount14 = #{amount14,jdbcType=FLOAT},
      
      
        times14 = #{times14,jdbcType=INTEGER},
      
      
        amount15 = #{amount15,jdbcType=FLOAT},
      
      
        times15 = #{times15,jdbcType=INTEGER},
      
      
        amount16 = #{amount16,jdbcType=FLOAT},
      
      
        times16 = #{times16,jdbcType=INTEGER},
      
      
        amount17 = #{amount17,jdbcType=FLOAT},
      
      
        times17 = #{times17,jdbcType=INTEGER},
      
      
        amount18 = #{amount18,jdbcType=FLOAT},
      
      
        times18 = #{times18,jdbcType=INTEGER},
      
      
        amount19 = #{amount19,jdbcType=FLOAT},
      
      
        times19 = #{times19,jdbcType=INTEGER},
      
      
        amount20 = #{amount20,jdbcType=FLOAT},
      
      
        times20 = #{times20,jdbcType=INTEGER},
      
      
        amount21 = #{amount21,jdbcType=FLOAT},
      
      
        times21 = #{times21,jdbcType=INTEGER},
      
      
        amount22 = #{amount22,jdbcType=FLOAT},
      
      
        times22 = #{times22,jdbcType=INTEGER},
      
      
        amount23 = #{amount23,jdbcType=FLOAT},
      
      
        times23 = #{times23,jdbcType=INTEGER},
      
      
        amount24 = #{amount24,jdbcType=FLOAT},
      
      
        times24 = #{times24,jdbcType=INTEGER},
      
      
        amount25 = #{amount25,jdbcType=FLOAT},
      
      
        times25 = #{times25,jdbcType=INTEGER},
      
      
        amount26 = #{amount26,jdbcType=FLOAT},
      
      
        times26 = #{times26,jdbcType=INTEGER},
      
      
        amount27 = #{amount27,jdbcType=FLOAT},
      
      
        times27 = #{times27,jdbcType=INTEGER},
      
      
        amount28 = #{amount28,jdbcType=FLOAT},
      
      
        times28 = #{times28,jdbcType=INTEGER},
      
      
        amount29 = #{amount29,jdbcType=FLOAT},
      
      
        times29 = #{times29,jdbcType=INTEGER},
      
      
        amount30 = #{amount30,jdbcType=FLOAT},
      
      
        times30 = #{times30,jdbcType=INTEGER},
      
      
        amount31 = #{amount31,jdbcType=FLOAT},
      
      
        times31 = #{times31,jdbcType=INTEGER},
      
    
    where id = #{id,jdbcType=BIGINT}
  
  
    
    update st_consume_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},
      times1 = #{times1,jdbcType=INTEGER},
      amount2 = #{amount2,jdbcType=FLOAT},
      times2 = #{times2,jdbcType=INTEGER},
      amount3 = #{amount3,jdbcType=FLOAT},
      times3 = #{times3,jdbcType=INTEGER},
      amount4 = #{amount4,jdbcType=FLOAT},
      times4 = #{times4,jdbcType=INTEGER},
      amount5 = #{amount5,jdbcType=FLOAT},
      times5 = #{times5,jdbcType=INTEGER},
      amount6 = #{amount6,jdbcType=FLOAT},
      times6 = #{times6,jdbcType=INTEGER},
      amount7 = #{amount7,jdbcType=FLOAT},
      times7 = #{times7,jdbcType=INTEGER},
      amount8 = #{amount8,jdbcType=FLOAT},
      times8 = #{times8,jdbcType=INTEGER},
      amount9 = #{amount9,jdbcType=FLOAT},
      times9 = #{times9,jdbcType=INTEGER},
      amount10 = #{amount10,jdbcType=FLOAT},
      times10 = #{times10,jdbcType=INTEGER},
      amount11 = #{amount11,jdbcType=FLOAT},
      times11 = #{times11,jdbcType=INTEGER},
      amount12 = #{amount12,jdbcType=FLOAT},
      times12 = #{times12,jdbcType=INTEGER},
      amount13 = #{amount13,jdbcType=FLOAT},
      times13 = #{times13,jdbcType=INTEGER},
      amount14 = #{amount14,jdbcType=FLOAT},
      times14 = #{times14,jdbcType=INTEGER},
      amount15 = #{amount15,jdbcType=FLOAT},
      times15 = #{times15,jdbcType=INTEGER},
      amount16 = #{amount16,jdbcType=FLOAT},
      times16 = #{times16,jdbcType=INTEGER},
      amount17 = #{amount17,jdbcType=FLOAT},
      times17 = #{times17,jdbcType=INTEGER},
      amount18 = #{amount18,jdbcType=FLOAT},
      times18 = #{times18,jdbcType=INTEGER},
      amount19 = #{amount19,jdbcType=FLOAT},
      times19 = #{times19,jdbcType=INTEGER},
      amount20 = #{amount20,jdbcType=FLOAT},
      times20 = #{times20,jdbcType=INTEGER},
      amount21 = #{amount21,jdbcType=FLOAT},
      times21 = #{times21,jdbcType=INTEGER},
      amount22 = #{amount22,jdbcType=FLOAT},
      times22 = #{times22,jdbcType=INTEGER},
      amount23 = #{amount23,jdbcType=FLOAT},
      times23 = #{times23,jdbcType=INTEGER},
      amount24 = #{amount24,jdbcType=FLOAT},
      times24 = #{times24,jdbcType=INTEGER},
      amount25 = #{amount25,jdbcType=FLOAT},
      times25 = #{times25,jdbcType=INTEGER},
      amount26 = #{amount26,jdbcType=FLOAT},
      times26 = #{times26,jdbcType=INTEGER},
      amount27 = #{amount27,jdbcType=FLOAT},
      times27 = #{times27,jdbcType=INTEGER},
      amount28 = #{amount28,jdbcType=FLOAT},
      times28 = #{times28,jdbcType=INTEGER},
      amount29 = #{amount29,jdbcType=FLOAT},
      times29 = #{times29,jdbcType=INTEGER},
      amount30 = #{amount30,jdbcType=FLOAT},
      times30 = #{times30,jdbcType=INTEGER},
      amount31 = #{amount31,jdbcType=FLOAT},
      times31 = #{times31,jdbcType=INTEGER}
    where id = #{id,jdbcType=BIGINT}