id, intakeId, amount, loss, controllerIdLast, dtLast, amountLast, totalAmountLast,
resourceTypeLast
delete from rm_intake_amount_history
where id = #{id,jdbcType=BIGINT}
insert into rm_intake_amount_history (id, intakeId, amount,
loss, controllerIdLast, dtLast,
amountLast, totalAmountLast, resourceTypeLast
)
values (#{id,jdbcType=BIGINT}, #{intakeid,jdbcType=BIGINT}, #{amount,jdbcType=DOUBLE},
#{loss,jdbcType=DOUBLE}, #{controlleridlast,jdbcType=BIGINT}, #{dtlast,jdbcType=DATE},
#{amountlast,jdbcType=DOUBLE}, #{totalamountlast,jdbcType=DOUBLE}, #{resourcetypelast,jdbcType=TINYINT}
)
insert into rm_intake_amount_history
id,
intakeId,
amount,
loss,
controllerIdLast,
dtLast,
amountLast,
totalAmountLast,
resourceTypeLast,
#{id,jdbcType=BIGINT},
#{intakeid,jdbcType=BIGINT},
#{amount,jdbcType=DOUBLE},
#{loss,jdbcType=DOUBLE},
#{controlleridlast,jdbcType=BIGINT},
#{dtlast,jdbcType=DATE},
#{amountlast,jdbcType=DOUBLE},
#{totalamountlast,jdbcType=DOUBLE},
#{resourcetypelast,jdbcType=TINYINT},
update rm_intake_amount_history
intakeId = #{intakeid,jdbcType=BIGINT},
amount = #{amount,jdbcType=DOUBLE},
loss = #{loss,jdbcType=DOUBLE},
controllerIdLast = #{controlleridlast,jdbcType=BIGINT},
dtLast = #{dtlast,jdbcType=DATE},
amountLast = #{amountlast,jdbcType=DOUBLE},
totalAmountLast = #{totalamountlast,jdbcType=DOUBLE},
resourceTypeLast = #{resourcetypelast,jdbcType=TINYINT},
where id = #{id,jdbcType=BIGINT}
update rm_intake_amount_history
set intakeId = #{intakeid,jdbcType=BIGINT},
amount = #{amount,jdbcType=DOUBLE},
loss = #{loss,jdbcType=DOUBLE},
controllerIdLast = #{controlleridlast,jdbcType=BIGINT},
dtLast = #{dtlast,jdbcType=DATE},
amountLast = #{amountlast,jdbcType=DOUBLE},
totalAmountLast = #{totalamountlast,jdbcType=DOUBLE},
resourceTypeLast = #{resourcetypelast,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}