package com.njcn.gather.steady.datavie.pojo.vo;

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.LocalDateTimeDeserializer;
import com.njcn.gather.steady.datavie.config.SteadySecondTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 稳态数据查看展示对象。
 */
@Data
public class SteadyDataViewVO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String tableName;

    private String lineId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = SteadySecondTimeSerializer.class)
    private LocalDateTime timeId;

    private String phasicType;

    private Integer qualityFlag;

    private String equipmentName;

    private String engineeringName;

    private String projectName;

    private String lineName;

    private Map<String, Object> values = new LinkedHashMap<String, Object>();
}
