insert into broker_record(broker_id, order_id, order_price, broker_rate, broker_price, reason, create_time)
values (#{brokerId}, #{orderId}, #{orderPrice}, #{brokerRate}, #{brokerPrice}, #{reason}, now())
delete from broker_record
where id = #{id}
delete from broker_record
where order_id = #{orderId}
update broker_record
broker_id = #{brokerId},
order_id = #{orderId},
order_price = #{orderPrice},
broker_rate = #{brokerRate},
broker_price = #{brokerPrice},
reason = #{reason},
where id = #{id}