package com.bonus.canteen.menu.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 菜品计划菜品关联对象 menu_recipe_dishes
 * 
 * @author xsheng
 * @date 2025-04-03
 */


@Data
@ToString
public class MenuRecipeDishes extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 菜谱详情id */
    @Excel(name = "菜谱详情id")
    @ApiModelProperty(value = "菜谱详情id")
    private Long detailId;

    /** 菜品id */
    @Excel(name = "菜品id")
    @ApiModelProperty(value = "菜品id")
    private Long dishesId;

    /** 菜品单价 */
    @Excel(name = "菜品单价")
    @ApiModelProperty(value = "菜品单价")
    private Long price;

    /** 规格类型(1-标准,2-大份,3-小份,4-50g,5-100g) */
    @Excel(name = "规格类型(1-标准,2-大份,3-小份,4-50g,5-100g)")
    @ApiModelProperty(value = "规格类型(1-标准,2-大份,3-小份,4-50g,5-100g)")
    private Long sizeType;

    /** 供应数量 */
    @Excel(name = "供应数量")
    @ApiModelProperty(value = "供应数量")
    private Long supplyNum;

    /** 销售数量 */
    @Excel(name = "销售数量")
    @ApiModelProperty(value = "销售数量")
    private Long saleNum;

    /** 剩余数量 */
    @Excel(name = "剩余数量")
    @ApiModelProperty(value = "剩余数量")
    private Integer surplusNum;

    /** 个人限购数量 */
    @Excel(name = "个人限购数量")
    @ApiModelProperty(value = "个人限购数量")
    private Long restrictNum;

    /** 菜品价格(优惠价) */
    @Excel(name = "菜品价格(优惠价)")
    @ApiModelProperty(value = "菜品价格(优惠价)")
    private Long salePrice;

    /** 优惠开始时间 */
    @ApiModelProperty(value = "优惠开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "优惠开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleStart;

    /** 优惠结束时间 */
    @ApiModelProperty(value = "优惠结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "优惠结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleEnd;

    /** 厨师id */
    @Excel(name = "厨师id")
    @ApiModelProperty(value = "厨师id")
    private Long chefId;

    /** 是否推荐(1-推荐,2-非推荐) */
    @Excel(name = "是否推荐(1-推荐,2-非推荐)")
    @ApiModelProperty(value = "是否推荐(1-推荐,2-非推荐)")
    private Long recommendFlag;

    /** 排序号 */
    @Excel(name = "排序号")
    @ApiModelProperty(value = "排序号")
    private Long sortNum;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    @ApiModelProperty(value = "乐观锁")
    private Long revision;


}
