package com.huimv.receive.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 入场申请
 * </p>
 *
 * @author author
 * @since 2023-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bill_personnel_admission")
public class BillPersonnelAdmission implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 0正常入场  1紧急入场
     */
    private Integer admissionType;

    /**
     * 来访类型 0人员  1环保车 2拉猪车 3饲料车  4送猪车 5物资车  6送餐
     */
    private Integer vistitType;

    /**
     * 出发地
     */
    private String departureName;

    /**
     * 出发地 id
     */
    private Integer departureId;

    /**
     * 目的地
     */
    private String destName;

    /**
     * 目的地 id
     */
    private Integer destId;

    /**
     * 申请人
     */
    private String admissionUserName;

    /**
     * 申请人id
     */
    private Integer admissionUserId;

    /**
     * 来访时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm" ,timezone = "GMT+8")
    private LocalDateTime vistitDate;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm" ,timezone = "GMT+8")
    private LocalDateTime subDate;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 单位名称
     */
    private String workName;

    /**
     * 证件类型
     */
    private Integer papersType;

    /**
     * 证件号码
     */
    private String papersCode;

    /**
     * 照片地址
     */
    private String imgUrl;

    /**
     * 来访理由
     */
    private String vistitReson;

    private Integer farmId;

    /**
     * 当前状态 0待审批 1通过  2拒绝
     */
    private Integer billStatus;

    /**
     * 处理时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm" ,timezone = "GMT+8")
    private LocalDateTime passDate;

    /**
     * 处理人
     */
    private String passUserName;

    /**
     * 处理人id
     */
    private Integer passUserId;

    /**
     * 进程id
     */
    private Integer processId;

    private String carNum;

    private String source;


    private String userImgUrl;

    private String resource;

    private String feedImgUrl;

    private Integer cleanId;

    private String cleanName;

    private String remark;

    /*
     * 0没有 1有
     */
    private Integer isCarry;

    /*
     * 物品照片地址
     */
    private String picUrl;

    private Integer midId;

    private String midName;

    private String farmName;
}
