select id, worker_id, oid, order_id, price, type, service_price, reduction_price, cr, mergin, door_price, created_at, updated_at from worker_money_log insert into worker_money_log worker_id, oid, order_id, price, type, service_price, reduction_price, cr, mergin, door_price, created_at, updated_at #{workerId}, #{oid}, #{orderId}, #{price}, #{type}, #{servicePrice}, #{reductionPrice}, #{cr}, #{mergin}, #{doorPrice}, NOW(), NOW() update worker_money_log worker_id = #{workerId}, oid = #{oid}, order_id = #{orderId}, price = #{price}, type = #{type}, service_price = #{servicePrice}, reduction_price = #{reductionPrice}, cr = #{cr}, mergin = #{mergin}, door_price = #{doorPrice}, updated_at = NOW() where id = #{id} delete from worker_money_log where id = #{id} delete from worker_money_log where id in #{id}