id, intake_id, `year`, amount
  
  
  
  
    
    delete from st_intake_amount_year
    where id = #{id,jdbcType=BIGINT}
  
  
    
    insert into st_intake_amount_year (id, intake_id, `year`, 
      amount)
    values (#{id,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER}, 
      #{amount,jdbcType=FLOAT})
  
  
    
    insert into st_intake_amount_year
    
      
        id,
      
      
        intake_id,
      
      
        `year`,
      
      
        amount,
      
    
    
      
        #{id,jdbcType=BIGINT},
      
      
        #{intakeId,jdbcType=BIGINT},
      
      
        #{year,jdbcType=INTEGER},
      
      
        #{amount,jdbcType=FLOAT},
      
    
  
  
    
    update st_intake_amount_year
    
      
        intake_id = #{intakeId,jdbcType=BIGINT},
      
      
        `year` = #{year,jdbcType=INTEGER},
      
      
        amount = #{amount,jdbcType=FLOAT},
      
    
    where id = #{id,jdbcType=BIGINT}
  
  
    
    update st_intake_amount_year
    set intake_id = #{intakeId,jdbcType=BIGINT},
      `year` = #{year,jdbcType=INTEGER},
      amount = #{amount,jdbcType=FLOAT}
    where id = #{id,jdbcType=BIGINT}