package com.bonus.canteen.core.menu.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
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
@TableName("menu_recipe_dishes")
@ApiModel("菜品计划菜品关联")
public class MenuRecipeDishes extends Model<MenuRecipeDishes> {
    @ApiModelProperty("主键id")
    private Long id;
    @ApiModelProperty("菜谱详情id")
    private Long detailId;
    @ApiModelProperty("菜品id")
    private Long dishesId;
    @ApiModelProperty("菜品单价")
    private Integer price;
    @ApiModelProperty("规格类型(1-标准,2-大份,3-小份,4-50g,5-100g)")
    private Long sizeType;
    @ApiModelProperty("供应数量")
    private Integer supplyNum;
    @ApiModelProperty("销售数量")
    private Integer saleNum;
    @ApiModelProperty("剩余数量")
    private Integer surplusNum;
    @ApiModelProperty("个人限购数量")
    private Integer restrictNum;
    @ApiModelProperty("菜品价格(优惠价)")
    private Integer salePrice;
    @ApiModelProperty("是否推荐")
    private Integer recommendFlag = 1;
    @ApiModelProperty("排序号")
    private Integer sortNum = -1;
    @ApiModelProperty("乐观锁")
    private Integer revision;
    @TableField(
            fill = FieldFill.INSERT
    )
    @ApiModelProperty("创建人")
    private String createBy;
    @TableField(
            fill = FieldFill.INSERT
    )
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    @ApiModelProperty("更新人")
    private String updateBy;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    private LocalDateTime saleStart;
    private LocalDateTime saleEnd;
    private Long chefId;

}
