package com.bonus.canteen.core.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
 * 
 * @author xsheng
 * @date 2025-04-03
 */


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

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

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

    /** 菜品计划id(数据同步) */
    @Excel(name = "菜品计划id(数据同步)")
    @ApiModelProperty(value = "菜品计划id(数据同步)")
    private String planId;

    /** 菜谱名称 */
    @Excel(name = "菜谱名称")
    @ApiModelProperty(value = "菜谱名称")
    private String recipeName;

    /** 是否为默认(1否, 2是) */
    @Excel(name = "是否为默认(1否, 2是)")
    @ApiModelProperty(value = "是否为默认(1否, 2是)")
    private Long isDefault;

    /** 菜谱类型(1默认,2按天,3按周,4按月) */
    @Excel(name = "菜谱类型(1默认,2按天,3按周,4按月)")
    @ApiModelProperty(value = "菜谱类型(1默认,2按天,3按周,4按月)")
    private Long recipeType;

    /** 生效时间 */
    @ApiModelProperty(value = "生效时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectDate;

    /** 到期时间 */
    @ApiModelProperty(value = "到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireDate;

    /** 食堂id */
    @Excel(name = "食堂id")
    @ApiModelProperty(value = "食堂id")
    private Long canteenId;

    /** 档口id */
    @Excel(name = "档口id")
    @ApiModelProperty(value = "档口id")
    private Long stallId;

    /** 启用状态(1-启用, 2-禁用) */
    @Excel(name = "启用状态(1-启用, 2-禁用)")
    @ApiModelProperty(value = "启用状态(1-启用, 2-禁用)")
    private Long enableFlag;

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


}
