select detail_id, order_id, order_date, goods_id, goods_name, goods_img_url, recipe_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, goods_img_url, recipe_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}, #{goodsImgUrl}, #{recipeDetailId}, #{salePrice}, #{discountPrice}, #{finalPrice}, #{quantity}, #{salesMode}, #{detailType}, #{totalAmount}, #{calcTotalAmount}, #{realAmount}, #{refundAmount}, #{detailState}, #{refundNum}, #{deviceSn}, #{serialNum}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, insert into order_detail ( order_id, order_date, goods_id, goods_name, goods_img_url, recipe_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, update_by ) values ( #{orderDetail.orderId}, #{orderDetail.orderDate}, #{orderDetail.goodsId}, #{orderDetail.goodsName}, #{orderDetail.goodsImgUrl}, #{orderDetail.recipeDetailId}, #{orderDetail.salePrice}, #{orderDetail.discountPrice}, #{orderDetail.finalPrice}, #{orderDetail.quantity}, #{orderDetail.salesMode}, #{orderDetail.detailType}, #{orderDetail.totalAmount}, #{orderDetail.calcTotalAmount}, #{orderDetail.realAmount}, #{orderDetail.refundAmount}, #{orderDetail.detailState}, #{orderDetail.refundNum}, #{orderDetail.deviceSn}, #{orderDetail.serialNum}, #{orderDetail.createBy}, #{orderDetail.createBy} ) update order_detail order_id = #{orderId}, order_date = #{orderDate}, goods_id = #{goodsId}, goods_name = #{goodsName}, goods_img_url = #{goodsImgUrl}, recipe_detail_id = #{recipeDetailId}, 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}