insert into litigation_info(
litigation_date, arrears_period, arrears_amount, late_fee,
acceptance_fee, other_fee, submitter, owner_id
) values (
#{litigationDate}, #{arrearsPeriod}, #{arrearsAmount}, #{lateFee},
#{acceptanceFee}, #{otherFee}, #{submitter}, #{ownerId}
)
insert into litigation_info(
litigation_date, arrears_period, arrears_amount, late_fee,
acceptance_fee, other_fee, submitter, owner_id
) values
( #{item.litigationDate}, #{item.arrearsPeriod}, #{item.arrearsAmount}, #{item.lateFee},
#{item.acceptanceFee}, #{item.otherFee}, #{item.submitter}, #{item.ownerId} )
update litigation_info t
t.litigation_date = #{litigationDate},
t.arrears_period = #{arrearsPeriod},
t.arrears_amount = #{arrearsAmount},
t.late_fee = #{lateFee},
t.acceptance_fee = #{acceptanceFee},
t.other_fee = #{otherFee},
t.submitter = #{submitter},
t.owner_id = #{ownerId},
t.update_time = CURRENT_TIMESTAMP
where 1 = 1
and t.id = #{id}
delete from litigation_info t
where 1 = 1
and t.id = #{id}
and t.litigation_date = #{litigationDate}
and t.submitter = #{submitter}
and t.owner_id = #{ownerId}