/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.estate.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-03-30
 */
@Data
@TableName("estate_guest_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Guest对象", description = "Guest对象")
public class GuestRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 访客名称
	 */
	@ApiModelProperty(value = "访客名称")
	private String guestName;
	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号")
	private String guestTel;
	/**
	 * 性别  0-未定义  1-男 2-女
	 */
	@ApiModelProperty(value = "性别  0-未定义  1-男 2-女")
	private Integer guestSex;
	/**
	 * 访问缘由
	 */
	@ApiModelProperty(value = "访问缘由")
	private String guestReason;
	/**
	 * 所属园区id
	 */
	@ApiModelProperty(value = "所属园区id")
	private Long agencyId;
	/**
	 * 所属园区名称
	 */
	@ApiModelProperty(value = "所属园区名称")
	private String agencyName;
	/**
	 * 所属小区id
	 */
	@ApiModelProperty(value = "所属小区id")
	private Long residentialId;
	/**
	 * 小区名称
	 */
	@ApiModelProperty(value = "小区名称")
	private String residentialName;
	/**
	 * 楼栋id
	 */
	@ApiModelProperty(value = "楼栋id")
	private Long buildingId;
	/**
	 * 楼栋名称
	 */
	@ApiModelProperty(value = "楼栋名称")
	private String buildingName;
	/**
	 * 所属单元id
	 */
	@ApiModelProperty(value = "所属单元id")
	private Long unitId;
	/**
	 * 单元名称
	 */
	@ApiModelProperty(value = "单元名称")
	private String unitName;
	/**
	 * 所属房间id
	 */
	@ApiModelProperty(value = "所属房间id")
	private Long roomId;
	/**
	 * 所属房间名称
	 */
	@ApiModelProperty(value = "所属房间名称")
	private String roomName;
	/**
	 * 要访问的住户姓名
	 */
	@ApiModelProperty(value = "要访问的住户姓名")
	private String userName;
	/**
	 * 访问的住户的id
	 * 社区传memberId
	 */
	@ApiModelProperty(value = "访问的住户的id")
	private Long userId;
	/**
	 * 企业id
	 */
	@ApiModelProperty(value = "企业id")
	private Long enterpriseId;
	/**
	 * 企业名称
	 */
	@ApiModelProperty(value = "企业名称")
	private String enterpriseName;
	/**
	 * 存储位置（通过该字段快速查询，所有的子节点）
	 */
	@ApiModelProperty(value = "存储位置（通过该字段快速查询，所有的子节点）")
	private String orgPosition;
	/**
	 * 审核状态：0-待审核 1-审核通过 2-审核不通过
	 */
	@ApiModelProperty(value = "审核状态：0-待审核 1-审核通过 2-审核不通过")
	private Integer auditStatus;
	/**
	 * 脸部照片url（没有域名）
	 */
	@ApiModelProperty(value = "脸部照片url（没有域名）")
	private String faceUrl;

	/**
	 * 人脸md5
	 */
	@ApiModelProperty(value = "人脸md5")
	private String imageMd5;
	/**
	 * openId
	 */
	@ApiModelProperty(value = "openId")
	private String openId;
	/**
	 * 访问时间
	 */
	@ApiModelProperty(value = "访问时间")
	private String interviewTime;
	/**
	 * 身份证
	 */
	@ApiModelProperty(value = "身份证")
	private String guestIdcard;
	/**
	 * 审核意见
	 */
	@ApiModelProperty(value = "审核意见")
	private String opinion;


	/**
	 * 租户id
	 */
	@ApiModelProperty(value = "租户id")
	private String tenantId;

	/**
	 * 来访企业
	 */
	@ApiModelProperty(value = "来访企业")
	private String guestEnterpriseName;

	/**
	 * 随访人数
	 */
	@ApiModelProperty(value = "随访人数")
	private Integer guestCount;


	/**
	 * 访客申请id
	 */
	@ApiModelProperty(value = "访客申请id")
	private Long guestAuthId;
	/**
	 * 1：小程序
	 * 2：后台
	 * 3：访客机
	 */
	@ApiModelProperty(value = "登记来源")
	private Integer registerSource;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "预约开始时间")
	private Date beginTime;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "预约结束时间")
	private Date endTime;

	@ApiModelProperty("0社区，1园区")
	private Integer tenantType;


}
