update rm_intake_amount_day set amount = #{amount, jdbcType=FLOAT} where id = #{id, jdbcType=BIGINT} update rm_intake_amount_day set amount = #{amount, jdbcType=FLOAT}, money = #{money, jdbcType=FLOAT}, times = #{times, jdbcType=INTEGER} where intake_id = #{intakeId, jdbcType=BIGINT} and dt = #{dt, jdbcType=DATE} delete from rm_intake_amount_day where times is null 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} ) update rm_loss_day set loss_amount = #{loss, jdbcType=FLOAT} where id = #{id, jdbcType=BIGINT} delete from st_loss_month insert into st_loss_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_loss_year insert into st_loss_year ( id, intake_id, year, amount ) values (#{id,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}, #{year,jdbcType=INTEGER}, #{amount,jdbcType=FLOAT} )