package com.jeeplus.psimanage.dishManage.domain;

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

import java.math.BigDecimal;

/**
 * 点菜订单明细
 */
@Data
@TableName("psi_dish_order_detail")
public class PsiDishOrderDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String orderId;

    private String roomId;

    private String dishId;

    private String dishCode;

    private String dishName;

    private String typeId;

    private String typeName;

    private String unit;

    private String spec;

    private BigDecimal salePrice;

    /**
     * 数量，退菜时允许为负数
     */
    private Integer quantity;

    private BigDecimal amount;

    private Integer dishSort;

    /**
     * 是否加菜：0否，1是
     */
    private String isAddDish;

    private String reason;

    private String remarks;

    @TableField(exist = false)
    private Integer currentQuantity;
}
