package com.yeejoin.amos.boot.module.jxiop.api.dto;

import lombok.Data;
import org.springframework.util.ObjectUtils;

import java.util.Date;

/**
 * @description:
 * @author: tw
 * @createDate: 2023/7/3
 */
//风机指标信息
@Data
public class IndexDto {
    private String gatewayId;// '网关',
    private String valueLabel;// '指标值', 取valueLable
    private String address;//  指标地址
    private String createdTime;// '上报时间',
    private String equipmentSpecificName;//
    private String equipmentNumber;
    private String  value;
    private int  count;
    private String equipmentsIdx;
    private String equipmentsIdx_1;
    private String equipmentIndexName; // 指标名称【风机状态名称】
    private String longitude; // 经度
    private String latitude; // 纬度
    private String frontModule;
    private String unit; // 单位
    private String F;//风机编号  -- 适应大屏
    private String state; // 指标名称【风机状态名称】
    private String countString;
    private String color;
    private String fanName;
    private String dataType;
    private String equipmentIndex;
    private String isAlarm;
    private String systemType;
    private String traceId;
    private String distinct;
    private String time;
    private String displayName;
    private String pictureName;
    private String title;
    private String timeString="";
    //对于创建时间进行处理用于列表排序
    public String getTimeString(){
        String timeString = "";
        if(!ObjectUtils.isEmpty(getCreatedTime())){
            timeString =getCreatedTime().replace("-","").replace(" ","").replace(":","");
        }
        return  timeString;
    }
    public void setTimeString(String timeString){
        this.timeString = timeString;
    }

}
