id, client_id, `year`, amount, gift, times
  
  
  
    
    delete from st_recharge_client_year
    where id = #{id,jdbcType=BIGINT}
  
  
    
    insert into st_recharge_client_year (id, client_id, `year`, 
      amount, gift, times)
    values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER}, 
      #{amount,jdbcType=FLOAT}, #{gift,jdbcType=FLOAT}, #{times,jdbcType=INTEGER})
  
  
    
    insert into st_recharge_client_year
    
      
        id,
      
      
        client_id,
      
      
        `year`,
      
      
        amount,
      
      
        gift,
      
      
        times,
      
    
    
      
        #{id,jdbcType=BIGINT},
      
      
        #{clientId,jdbcType=BIGINT},
      
      
        #{year,jdbcType=INTEGER},
      
      
        #{amount,jdbcType=FLOAT},
      
      
        #{gift,jdbcType=FLOAT},
      
      
        #{times,jdbcType=INTEGER},
      
    
  
  
    
    update st_recharge_client_year
    
      
        client_id = #{clientId,jdbcType=BIGINT},
      
      
        `year` = #{year,jdbcType=INTEGER},
      
      
        amount = #{amount,jdbcType=FLOAT},
      
      
        gift = #{gift,jdbcType=FLOAT},
      
      
        times = #{times,jdbcType=INTEGER},
      
    
    where id = #{id,jdbcType=BIGINT}
  
  
    
    update st_recharge_client_year
    set client_id = #{clientId,jdbcType=BIGINT},
      `year` = #{year,jdbcType=INTEGER},
      amount = #{amount,jdbcType=FLOAT},
      gift = #{gift,jdbcType=FLOAT},
      times = #{times,jdbcType=INTEGER}
    where id = #{id,jdbcType=BIGINT}