id, `type`, `year`, patent_amount, create_time, reduction_amount
delete from patent_year_payment
where id = #{id,jdbcType=INTEGER}
insert into patent_year_payment (id, `type`, `year`,
patent_amount, create_time, reduction_amount
)
values (#{id,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{year,jdbcType=INTEGER},
#{patentAmount,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{reductionAmount,jdbcType=DECIMAL}
)
insert into patent_year_payment
id,
`type`,
`year`,
patent_amount,
create_time,
reduction_amount,
#{id,jdbcType=INTEGER},
#{type,jdbcType=INTEGER},
#{year,jdbcType=INTEGER},
#{patentAmount,jdbcType=DECIMAL},
#{createTime,jdbcType=TIMESTAMP},
#{reductionAmount,jdbcType=DECIMAL},
update patent_year_payment
`type` = #{type,jdbcType=INTEGER},
`year` = #{year,jdbcType=INTEGER},
patent_amount = #{patentAmount,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
reduction_amount = #{reductionAmount,jdbcType=DECIMAL},
where id = #{id,jdbcType=INTEGER}
update patent_year_payment
set `type` = #{type,jdbcType=INTEGER},
`year` = #{year,jdbcType=INTEGER},
patent_amount = #{patentAmount,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
reduction_amount = #{reductionAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=INTEGER}