package com.njcn.gather.err.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import com.njcn.db.mybatisplus.bo.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @author caozehui
 * @date 2024-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pq_err_sys")
public class PqErrSys extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -90836093088362651L;
    /**
     * 误差体系ID
     */
    private String id;

    /**
     * 误差体系名称
     */
    private String name;

    /**
     * 参照标准名称
     */
    private String standardName;

    /**
     * 标准推行时间
     */
    @JsonFormat(pattern = "yyyy")
    @JsonDeserialize(using = LocalDateDeserializer.class)
    @JsonSerialize(using = LocalDateSerializer.class)
    private LocalDate standardTime;

    /**
     * 设备等级,字典表
     */
    private String devLevel;

    /**
     * 状态：0-不启用 1-启用
     */
    private Integer enable;

    /**
     * 状态：0-删除 1-正常
     */
    private Integer state;

    @TableField(exist = false)
    private List<PqErrSysDtls> pqErrSysDtlsList;
}

