select id, type, main_order_id, order_id, transaction_id, uid, product_id, name, phone, address, num, total_price, good_price, service_price, pay_price, deduction, postage, pay_time, status, delivery_id, delivery_num, send_time, mark, address_id, sku, created_at, updated_at, deleted_at from goods_order insert into goods_order type, main_order_id, order_id, transaction_id, uid, coupon_id, product_id, name, phone, address, num, total_price, good_price, service_price, pay_price, deduction, postage, pay_time, status, delivery_id, delivery_num, send_time, mark, address_id, sku, created_at, updated_at deleted_at, #{type}, #{mainOrderId}, #{orderId}, #{transactionId}, #{uid}, #{couponId}, #{productId}, #{name}, #{phone}, #{address}, #{num}, #{totalPrice}, #{goodPrice}, #{servicePrice}, #{payPrice}, #{deduction}, #{postage}, #{payTime}, #{status}, #{deliveryId}, #{deliveryNum}, #{sendTime}, #{mark}, #{addressId}, #{sku}, #{deletedAt}, NOW(), NOW() update goods_order type = #{type}, main_order_id = #{mainOrderId}, order_id = #{orderId}, transaction_id = #{transactionId}, uid = #{uid}, product_id = #{productId}, coupon_id = #{couponId}, name = #{name}, phone = #{phone}, address = #{address}, num = #{num}, total_price = #{totalPrice}, good_price = #{goodPrice}, service_price = #{servicePrice}, pay_price = #{payPrice}, deduction = #{deduction}, postage = #{postage}, pay_time = #{payTime}, status = #{status}, delivery_id = #{deliveryId}, delivery_num = #{deliveryNum}, send_time = #{sendTime}, mark = #{mark}, address_id = #{addressId}, sku = #{sku}, deleted_at = #{deletedAt}, updated_at=NOW() where id = #{id} delete from goods_order where id = #{id} delete from goods_order where id in #{id}