package com.gxwebsoft.apps.entity;

import com.baomidou.mybatisplus.annotation.*;

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

import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Value;

/**
 * 临时报餐管理
 *
 * @author 科技小王子
 * @since 2023-04-24 21:47:57
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "BcTemporary对象", description = "临时报餐管理")
@TableName("apps_bc_temporary")
public class BcTemporary implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "temporary_id", type = IdType.AUTO)
    private Integer temporaryId;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "工单ID")
    private Integer parentId;

    @ApiModelProperty(value = "申请状态")
    private Integer applyStatus;

    @ApiModelProperty(value = "状态, 0待处理, 1已完成")
    private Integer status;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "加入时间")
    private Date createTime;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "报餐日期")
    private Date dayTime;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "失效时间")
    private Date expirationTime;

    @ApiModelProperty(value = "昵称")
    @TableField(exist = false)
    private String nickname;

    @ApiModelProperty(value = "代报餐人员")
    @TableField(exist = false)
    private String dealerName;

    @ApiModelProperty(value = "被代报餐职员")
    @TableField(exist = false)
    private User user;

    @ApiModelProperty(value = "代报餐人员")
    @TableField(exist = false)
    private User parentUser;

}
