package com.nantian.cloud.dbcapp.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 能源计量管理-计量器具与采集配置项关联表(ConfigureGaugeRelevance)表实体类
 *
 * @author suixin
 * @since 2023-05-16 11:54:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("configure_gauge_relevance")
public class ConfigureGaugeRelevance implements Serializable{
    //主键id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;
    //社会信用代码
    private String enterpriseCode;
    //计量器具主键id（configure_gauge）
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long gaugeId;
    //采集编码
    private String dataCode;
    //创建者
    private String creator;
    //审核状态：审核状态：0-未审核，1-审核通过，2-审核不通过
    private String auditStatus;
    //审核时间
    private Date gmtAudit;
    //审核人
    private String auditor;
    //审核说明
    private String auditDescription;
    //删除状态：0-未删除，1-已删除
    private String isDeleted;
    //创建时间
    private Date gmtCreate;
    //修改时间
    private Date gmtModified;
    //备注
    private String remark;

    //企业名称
    @TableField(exist = false)
    private  String enterpriseName;

    //采集配置项名称
    @TableField(exist = false)
    private String collectItemName;

    //计量器具名称
    @TableField(exist = false)
    private String meterName;

    //计量器具类型
    @TableField(exist = false)
    private String meterType;

    //计量器具等级
    @TableField(exist = false)
    private String meterLevel;

    //计量器具等级_按照采集编码对应的新等级
    @TableField(exist = false)
    private String meterLevelNew;

    }

