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;
import java.util.Date;
import java.util.List;

/**
 * 点菜订单
 */
@Data
@TableName("psi_dish_order")
public class PsiDishOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String orderNo;

    private String roomId;

    private String roomNo;

    private String roomName;

    /**
     * 订单状态：0用餐中，1已结账，2已取消
     */
    private String orderStatus;

    private BigDecimal totalAmount;

    /**
     * 结账方式：0结账，1折扣结账，2优惠结账
     */
    private String settleType;

    private BigDecimal discountRate;

    private BigDecimal discountAmount;

    private BigDecimal payableAmount;

    private Date settleTime;

    private String tasteRemark;

    private String specialRequirements;

    private String remarks;

    @TableField(exist = false)
    private String[] createTimes;

    @TableField(exist = false)
    private String[] settleTimes;

    @TableField(exist = false)
    private String createName;

    @TableField(exist = false)
    private String settleFlag;

    @TableField(exist = false)
    private List<PsiDishOrderDetail> detailList;

    @TableField(exist = false)
    private List<PsiDishOrderDetail> addDishList;

    @TableField(exist = false)
    private List<PsiDishOrderDetail> reduceDishList;
}
