package com.sptg.estate.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * Created By lidexi in 2021/1/10
 * 防疫通行记录
 **/
@Setter
@Getter
@TableName(value = "estate_pratique")
public class Pratique {

    /**
     * 主键
     */
    @TableId(value = "l_id",type = IdType.INPUT)
    private Long id;

    /**
     * 会员id
     */
    @TableField(value = "l_member_id")
    private Long memberId;

    /**
     * 出入原因
     */
    @TableField(value = "s_reason")
    private String reason;

    /**
     * 温度是否异常 0-正常 1-异常
     */
    @TableField(value = "i_tempareture_exception")
    private Integer temparetureException;

    /**
     * 症状是否异常 0-正常 1-异常
     */
    @TableField(value = "i_symptom_exception")
    private Integer symptomException;

    /**
     * 创建时间
     */
    @TableField(value = "t_create_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    @TableField(value = "l_residential_id")
    private Long residentialId;

    @TableField(value = "s_residential_name")
    private String residentialName;

}
