package com.jeeplus.hotelorder.order.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeeplus.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "hotel_order_item")
public class HotelOrderItem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private String orderId;

    /** 菜品ID */
    private String dishId;

    /** 菜品名称(冗余) */
    private String dishName;

    /** 规格描述(冗余) */
    private String specDesc;

    /** 加料描述(冗余) */
    private String additionsDesc;

    /** 数量 */
    private Integer quantity;

    /** 单价 */
    private BigDecimal unitPrice;

    /** 小计 */
    private BigDecimal subtotal;

    /** 备注 */
    private String note;
}
