select id, account_id, toll_collector_id, toll_collector, create_by, create_time, update_by, update_time, deleted, account_begin_time, account_end_time, amount_received, refund_amount, payable from tj_toll_collector insert into tj_toll_collector account_id, toll_collector_id, toll_collector, create_by, create_time, update_by, update_time, deleted, account_begin_time, account_end_time, amount_received, refund_amount, payable, #{accountId}, #{tollCollectorId}, #{tollCollector}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{deleted}, #{accountBeginTime}, #{accountEndTime}, #{amountReceived}, #{refundAmount}, #{payable}, update tj_toll_collector account_id = #{accountId}, toll_collector_id = #{tollCollectorId}, toll_collector = #{tollCollector}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, deleted = #{deleted}, account_begin_time = #{accountBeginTime}, account_end_time = #{accountEndTime}, amount_received = #{amountReceived}, refund_amount = #{refundAmount}, payable = #{payable}, where id = #{id} delete from tj_toll_collector where id = #{id} delete from tj_toll_collector where id in #{id} delete from tj_toll_collector_detail where account_id in #{accountId} delete from tj_toll_collector_detail where account_id = #{accountId} insert into tj_toll_collector_detail ( id , account_id , pay_type , amount_received , refund_amount , payable , create_by , create_time , update_by , update_time , deleted) values ( #{item.id }, #{item.accountId }, #{item.payType }, #{item.amountReceived }, #{item.refundAmount }, #{item.payable }, #{item.createBy }, #{item.createTime }, #{item.updateBy }, #{item.updateTime }, #{item.deleted })