package com.template.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2023-12-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SmartVisitor对象", description="")
public class SmartVisitor implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

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

    @ApiModelProperty(value = "访客姓名")
    private String userName;

    @ApiModelProperty(value = "访客手机号")
    private String userPhone;

    @ApiModelProperty(value = "访客证件号")
    private String userNumber;

    @ApiModelProperty(value = "同行人数")
    private Integer peerNum;

    /**
     * 家长预约 去掉车牌号字段
     */
    @ApiModelProperty(value = "车牌号")
    private String carNum;

    @ApiModelProperty(value = "访问事由")
    private String visitReason;

    @ApiModelProperty(value = "状态 待审核：1  已拒绝：2  已推送：3")
    private Integer statu;

    @ApiModelProperty(value = "来访时间")
    private Date visitorTime;

    /**
     * 来访截止时间
     * 家长预约的话 来访时间+4小时
     * 其他访客时间 当天23:59:59秒结束
     */
    @ApiModelProperty(value = "来访截止时间")
    private Date visitorDeadline;

    @ApiModelProperty(value = "受访者ID")
    private Integer respondent;

    @ApiModelProperty(value = "受访者编号")
    private String responcode;

    @ApiModelProperty(value = "部门ID")
    private Integer departmentId;

    @ApiModelProperty(value = "受访者电话")
    private String respondentPhone;

    @ApiModelProperty(value = "受访者姓名")
    private String respondentName;

    /**
     * 访客类型
     * 家长：1
     * 其他：2
     */
    @ApiModelProperty(value = "访客类型")
    private Integer visitorType;

    @ApiModelProperty(value = "百胜预约订单号")
    private String bsOrderNo;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "创建人员")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "更新人员")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "逻辑删除 未删除：0；删除：1")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleted;


}
