id, client_id, amount, money, times, dt, open_dt_last, close_dt_last, this_amount_last, this_money_last,
    this_time_last, rtu_dt_last
  
  
  
  
    
    delete from rm_client_amount_day
    where id = #{id,jdbcType=BIGINT}
  
  
    
    insert into rm_client_amount_day (id, client_id, amount, money, times,
      dt, open_dt_last, close_dt_last, 
      this_amount_last, this_money_last, this_time_last,
      rtu_dt_last)
    values (#{id,jdbcType=BIGINT}, #{clientId,jdbcType=BIGINT}, #{amount,jdbcType=FLOAT}, #{money,jdbcType=FLOAT}, #{times,jdbcType=FLOAT},
      #{dt,jdbcType=DATE}, #{openDtLast,jdbcType=TIMESTAMP}, #{closeDtLast,jdbcType=TIMESTAMP}, 
      #{thisAmountLast,jdbcType=FLOAT}, #{thisMoneyLast,jdbcType=FLOAT}, #{thisTimeLast,jdbcType=INTEGER},
      #{rtuDtLast,jdbcType=TIMESTAMP})
  
  
    
    insert into rm_client_amount_day
    
      
        id,
      
      
        client_id,
      
      
        amount,
      
      
        money,
      
      
        times,
      
      
        dt,
      
      
        open_dt_last,
      
      
        close_dt_last,
      
      
        this_amount_last,
      
      
        this_money_last,
      
      
        this_time_last,
      
      
        rtu_dt_last,
      
    
    
      
        #{id,jdbcType=BIGINT},
      
      
        #{clientId,jdbcType=BIGINT},
      
      
        #{amount,jdbcType=FLOAT},
      
      
        #{money,jdbcType=FLOAT},
      
      
        #{times,jdbcType=INTEGER},
      
      
        #{dt,jdbcType=DATE},
      
      
        #{openDtLast,jdbcType=TIMESTAMP},
      
      
        #{closeDtLast,jdbcType=TIMESTAMP},
      
      
        #{thisAmountLast,jdbcType=FLOAT},
      
      
        #{thisMoneyLast,jdbcType=FLOAT},
      
      
        #{thisTimeLast,jdbcType=INTEGER},
      
      
        #{rtuDtLast,jdbcType=TIMESTAMP},
      
    
  
  
    
    update rm_client_amount_day
    
      
        client_id = #{clientId,jdbcType=BIGINT},
      
      
        amount = #{amount,jdbcType=FLOAT},
      
      
        money = #{money,jdbcType=FLOAT},
      
      
        times = #{times,jdbcType=INTEGER},
      
      
        dt = #{dt,jdbcType=DATE},
      
      
        open_dt_last = #{openDtLast,jdbcType=TIMESTAMP},
      
      
        close_dt_last = #{closeDtLast,jdbcType=TIMESTAMP},
      
      
        this_amount_last = #{thisAmountLast,jdbcType=FLOAT},
      
      
        this_money_last = #{thisMoneyLast,jdbcType=FLOAT},
      
      
        this_time_last = #{thisTimeLast,jdbcType=INTEGER},
      
      
        rtu_dt_last = #{rtuDtLast,jdbcType=TIMESTAMP},
      
    
    where id = #{id,jdbcType=BIGINT}
  
  
    
    update rm_client_amount_day
    set client_id = #{clientId,jdbcType=BIGINT},
      amount = #{amount,jdbcType=FLOAT},
      money = #{money,jdbcType=FLOAT},
      times = #{times,jdbcType=INTEGER},
      dt = #{dt,jdbcType=DATE},
      open_dt_last = #{openDtLast,jdbcType=TIMESTAMP},
      close_dt_last = #{closeDtLast,jdbcType=TIMESTAMP},
      this_amount_last = #{thisAmountLast,jdbcType=FLOAT},
      this_money_last = #{thisMoneyLast,jdbcType=FLOAT},
      this_time_last = #{thisTimeLast,jdbcType=INTEGER},
      rtu_dt_last = #{rtuDtLast,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}