package com.bs.pm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

/**
 * 食堂采购计划对象 pm_canteen_purchase_plan
 *
 * @author bs
 * @date 2025-10-05
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pm_canteen_purchase_plan")
@Data
public class PmCanteenPurchasePlan extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /** 计划编号 */

    @Excel(name = "计划编号")
    @ApiModelProperty(value = "计划编号")
    private String planNo;

    /** 计划采购日期 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划采购日期")
    private Date purchaseDate;

    /** 预计用餐人数 */

    @Excel(name = "预计用餐人数")
    @ApiModelProperty(value = "预计用餐人数")
    private Long expectedPersonCount;

    /** 历史消耗数据 */

    @Excel(name = "历史消耗数据")
    @ApiModelProperty(value = "历史消耗数据")
    private String historyConsumption;

    /** 申请人 */

    @Excel(name = "申请人")
    @ApiModelProperty(value = "申请人")
    private Long applyUser;

    /** 申请日期 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "申请日期")
    private Date applyDate;

    /** 审核人 */

    @Excel(name = "审核人")
    @ApiModelProperty(value = "审核人")
    private Long auditUser;

    /** 审核时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date auditDate;

    /** 状态 */

    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private String status;





}
