id, pid, annual_fee, annual_fee_state, application_fee, trial_fee,
printing_fee,
funds, reimbursement, payment_state
delete from patent_cost
where id = #{id,jdbcType=VARCHAR}
insert into patent_cost (id, pid, annual_fee,
annual_fee_state, application_fee, trial_fee,
printing_fee, funds, reimbursement,
payment_state)
values (#{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR},
#{annualFee,jdbcType=INTEGER},
#{annualFeeState,jdbcType=INTEGER}, #{applicationFee,jdbcType=INTEGER}, #{trialFee,jdbcType=INTEGER},
#{printingFee,jdbcType=INTEGER}, #{funds,jdbcType=INTEGER},
#{reimbursement,jdbcType=INTEGER},
#{paymentState,jdbcType=INTEGER})
insert into patent_cost
id,
pid,
annual_fee,
annual_fee_state,
application_fee,
trial_fee,
printing_fee,
funds,
reimbursement,
payment_state,
#{id,jdbcType=VARCHAR},
#{pid,jdbcType=VARCHAR},
#{annualFee,jdbcType=INTEGER},
#{annualFeeState,jdbcType=INTEGER},
#{applicationFee,jdbcType=INTEGER},
#{trialFee,jdbcType=INTEGER},
#{printingFee,jdbcType=INTEGER},
#{funds,jdbcType=INTEGER},
#{reimbursement,jdbcType=INTEGER},
#{paymentState,jdbcType=INTEGER},
update patent_cost
pid = #{pid,jdbcType=VARCHAR},
annual_fee = #{annualFee,jdbcType=INTEGER},
annual_fee_state = #{annualFeeState,jdbcType=INTEGER},
application_fee = #{applicationFee,jdbcType=INTEGER},
trial_fee = #{trialFee,jdbcType=INTEGER},
printing_fee = #{printingFee,jdbcType=INTEGER},
funds = #{funds,jdbcType=INTEGER},
reimbursement = #{reimbursement,jdbcType=INTEGER},
payment_state = #{paymentState,jdbcType=INTEGER},
where id = #{id,jdbcType=VARCHAR}
update patent_cost
set pid = #{pid,jdbcType=VARCHAR},
annual_fee = #{annualFee,jdbcType=INTEGER},
annual_fee_state = #{annualFeeState,jdbcType=INTEGER},
application_fee = #{applicationFee,jdbcType=INTEGER},
trial_fee = #{trialFee,jdbcType=INTEGER},
printing_fee = #{printingFee,jdbcType=INTEGER},
funds = #{funds,jdbcType=INTEGER},
reimbursement = #{reimbursement,jdbcType=INTEGER},
payment_state = #{paymentState,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
insert into patent_cost (id, pid, annual_fee,
annual_fee_state, application_fee, trial_fee,
printing_fee, funds, reimbursement,
payment_state)
values
(
#{item.id,jdbcType=VARCHAR},
#{item.pid,jdbcType=VARCHAR},
#{item.annualFee,jdbcType=INTEGER},
#{item.annualFeeState,jdbcType=INTEGER},
#{item.applicationFee,jdbcType=INTEGER},
#{item.trialFee,jdbcType=INTEGER},
#{item.printingFee,jdbcType=INTEGER},
#{item.funds,jdbcType=INTEGER},
#{item.reimbursement,jdbcType=INTEGER},
#{item.paymentState,jdbcType=INTEGER}
)
update patent_cost set annual_fee_state = 0
where id in
#{item}