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