insert into court_execution_procedure(
owner_id, apply_time, judgment_doc_number, arrears_period,
arrears_amount, late_fee, acceptance_fee, other_fee,
total_amount, remark, callable_id
) values (
#{ownerId}, #{applyTime}, #{judgmentDocNumber}, #{arrearsPeriod},
#{arrearsAmount}, #{lateFee}, #{acceptanceFee}, #{otherFee},
#{totalAmount}, #{remark}, #{callableId}
)
insert into court_execution_procedure(
owner_id, apply_time, judgment_doc_number, arrears_period,
arrears_amount, late_fee, acceptance_fee, other_fee,
total_amount, remark, callable_id
) values
( #{item.ownerId}, #{item.applyTime}, #{item.judgmentDocNumber}, #{item.arrearsPeriod},
#{item.arrearsAmount}, #{item.lateFee}, #{item.acceptanceFee}, #{item.otherFee},
#{item.totalAmount}, #{item.remark}, #{item.callableId} )
update court_execution_procedure t
t.owner_id = #{ownerId},
t.apply_time = #{applyTime},
t.judgment_doc_number = #{judgmentDocNumber},
t.arrears_period = #{arrearsPeriod},
t.arrears_amount = #{arrearsAmount},
t.late_fee = #{lateFee},
t.acceptance_fee = #{acceptanceFee},
t.other_fee = #{otherFee},
t.total_amount = #{totalAmount},
t.remark = #{remark},
t.callable_id = #{callableId},
t.update_time = CURRENT_TIMESTAMP
where 1 = 1
and t.id = #{id}
delete from court_execution_procedure t
where 1 = 1
and t.id = #{id}
and t.owner_id = #{ownerId}
and t.judgment_doc_number = #{judgmentDocNumber}