select detail_id, order_id, order_date, goods_id, goods_name, img_url, menu_detail_id, sale_price, discount_price, final_price, quantity, sales_mode, detail_type, total_amount, calc_total_amount, real_amount, refund_amount, detail_state, refund_num, device_sn, serial_num, create_by, create_time, update_by, update_time from order_detail insert into order_detail order_id, order_date, goods_id, goods_name, img_url, menu_detail_id, sale_price, discount_price, final_price, quantity, sales_mode, detail_type, total_amount, calc_total_amount, real_amount, refund_amount, detail_state, refund_num, device_sn, serial_num, create_by, create_time, update_by, update_time, #{orderId}, #{orderDate}, #{goodsId}, #{goodsName}, #{imgUrl}, #{menuDetailId}, #{salePrice}, #{discountPrice}, #{finalPrice}, #{quantity}, #{salesMode}, #{detailType}, #{totalAmount}, #{calcTotalAmount}, #{realAmount}, #{refundAmount}, #{detailState}, #{refundNum}, #{deviceSn}, #{serialNum}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update order_detail order_id = #{orderId}, order_date = #{orderDate}, goods_id = #{goodsId}, goods_name = #{goodsName}, img_url = #{imgUrl}, menu_detail_id = #{menuDetailId}, sale_price = #{salePrice}, discount_price = #{discountPrice}, final_price = #{finalPrice}, quantity = #{quantity}, sales_mode = #{salesMode}, detail_type = #{detailType}, total_amount = #{totalAmount}, calc_total_amount = #{calcTotalAmount}, real_amount = #{realAmount}, refund_amount = #{refundAmount}, detail_state = #{detailState}, refund_num = #{refundNum}, device_sn = #{deviceSn}, serial_num = #{serialNum}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where detail_id = #{detailId} delete from order_detail where detail_id = #{detailId} delete from order_detail where detail_id in #{detailId}