package com.dcsoft.system.visitor.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.dcsoft.common.core.annotation.Excels;
import com.dcsoft.common.core.web.domain.BaseEntity;
import com.dcsoft.system.domain.SysBranch;
import com.dcsoft.system.domain.SysPeople;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.dcsoft.common.core.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 访客信息对象 vis_visitor
 *
 * @author 倪春
 * @date 2023-03-09
 */
@Data
public class Visitor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 访客Id */
    private Long id;

    /** 来访人 */
    @Excel(name = "来访人")
    private String name;

    /** 联系电话 */
    private String phone;

    /** 用户性别（0男 1女 2保密） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=保密")
    private String sex;

    /** 头像地址 */
    private String avatar;

    /** 身份证号码 */
    private String idcard;

    /** 车牌号码 */
    private String carNo;

    /** 被访人 */
    private Long userId;

    /** 访问部门 */
    private Long deptId;

    /** 访客类型 */
    private String flag;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 来访结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 来访事由 */
    private String matter;

    /** 携带物品 */
    private String res;

    /** 人员编号对接 */
    private String guid;

    /** 人像对接 */
    private String faceGuid;

    private Long parentId;

    private List<Visitor> itemList;

    /** 审核状态 */
    private String  tabFlag;

    private VisVisitorExamine examine;

    @Excels({
            @Excel(name = "访问部门", targetAttr = "name", type = Excel.Type.EXPORT),
    })
    private SysBranch branch;

    @Excels({
            @Excel(name = "访问人员", targetAttr = "name", type = Excel.Type.EXPORT),
    })
    private SysPeople people;

    private Long time;

    /** 进入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "进入时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inTime;

    /** 离开时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "离开时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    /** 是否推送预约访客0.未推送 1已推送 */
    private String pushType;

    /** 访客来源 */
    private String source;

    private String state;

    private String idcardPhoto;

    private String type;

    /**
     * 来访单位
     */
    private String visitingUnit;

    private String ruleId;

    private String userName;

    private String peopleId;

    private String ladderRuleId;

    private String peopleName;

    private String peoplePhone;

    private String checkCodeId;

}
