初始化influx公共模块项目
This commit is contained in:
22
src/main/java/com/njcn/influx/pojo/dto/DataFlickerDTO.java
Normal file
22
src/main/java/com/njcn/influx/pojo/dto/DataFlickerDTO.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.njcn.influx.pojo.dto;
|
||||
|
||||
import com.njcn.influx.pojo.po.DataFlicker;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年05月05日 10:17
|
||||
*/
|
||||
@Data
|
||||
@Measurement(name = "data_flicker")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class DataFlickerDTO extends DataFlicker implements Serializable {
|
||||
|
||||
private String valueType;
|
||||
|
||||
}
|
||||
19
src/main/java/com/njcn/influx/pojo/dto/DeviceDayFlowDTO.java
Normal file
19
src/main/java/com/njcn/influx/pojo/dto/DeviceDayFlowDTO.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.njcn.influx.pojo.dto;
|
||||
|
||||
import com.njcn.influx.pojo.po.CldStatisFlow;
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Data
|
||||
@Measurement(name = "cld_statis_flow")
|
||||
public class DeviceDayFlowDTO extends CldStatisFlow {
|
||||
|
||||
private float dailyActualValue;
|
||||
|
||||
private String date;
|
||||
|
||||
private String month;
|
||||
}
|
||||
23
src/main/java/com/njcn/influx/pojo/dto/EventDataSetDTO.java
Normal file
23
src/main/java/com/njcn/influx/pojo/dto/EventDataSetDTO.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.njcn.influx.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/9/6 9:52【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
public class EventDataSetDTO {
|
||||
private String name;
|
||||
private String value;
|
||||
private String type;
|
||||
|
||||
private String unit;
|
||||
|
||||
private String showName;
|
||||
}
|
||||
20
src/main/java/com/njcn/influx/pojo/dto/EventQueryDTO.java
Normal file
20
src/main/java/com/njcn/influx/pojo/dto/EventQueryDTO.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.njcn.influx.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/8/30 18:38【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@Deprecated
|
||||
public class EventQueryDTO {
|
||||
private String devId;
|
||||
private List<String> lineIds;
|
||||
private List<String> target;
|
||||
}
|
||||
33
src/main/java/com/njcn/influx/pojo/dto/HarmData.java
Normal file
33
src/main/java/com/njcn/influx/pojo/dto/HarmData.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package com.njcn.influx.pojo.dto;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.njcn.influx.ano.IgnoreData;
|
||||
import com.njcn.influx.utils.InstantDateDeserializer;
|
||||
import com.njcn.influx.utils.InstantDateSerializer;
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
import org.influxdb.annotation.Measurement;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年07月19日 09:43
|
||||
*/
|
||||
@Data
|
||||
public class HarmData implements Serializable{
|
||||
|
||||
|
||||
@Column(name = "time")
|
||||
@JsonSerialize(using = InstantDateSerializer.class)
|
||||
@JsonDeserialize(using = InstantDateDeserializer.class)
|
||||
private Instant time;
|
||||
|
||||
@IgnoreData(value = true)
|
||||
private Float value;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.influx.pojo.dto;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hongawen
|
||||
* @version 1.0.0
|
||||
* @date 2023年07月19日 09:40
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class HarmHistoryDataDTO implements Serializable {
|
||||
|
||||
private List<HarmData> historyData = new ArrayList<>();
|
||||
|
||||
private float overLimit;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.njcn.influx.pojo.dto;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.njcn.influx.utils.InstantDateSerializer;
|
||||
import lombok.Data;
|
||||
import org.influxdb.annotation.Column;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/6/5 10:23【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
public class StatisticalDataDTO {
|
||||
|
||||
@Column(name = "time")
|
||||
@JsonSerialize(using = InstantDateSerializer.class)
|
||||
private Instant time;
|
||||
|
||||
@Column(name = "line_id")
|
||||
private String lineId;
|
||||
|
||||
@Column(name = "phasic_type")
|
||||
private String phaseType;
|
||||
|
||||
@Column(name = "value_type")
|
||||
private String valueType;
|
||||
|
||||
@Column(name = "cl_did")
|
||||
private String clDid;
|
||||
|
||||
|
||||
/**
|
||||
* 指标值
|
||||
*/
|
||||
private Double value;
|
||||
|
||||
/**
|
||||
* 指标名称
|
||||
*/
|
||||
private String statisticalName;
|
||||
|
||||
/**
|
||||
* 指标
|
||||
*/
|
||||
private String target;
|
||||
|
||||
/**
|
||||
* 指标最大值
|
||||
*/
|
||||
private Double maxValue;
|
||||
|
||||
/**
|
||||
* 指标最小值
|
||||
*/
|
||||
private Double minValue;
|
||||
|
||||
/**
|
||||
* 指标平均值
|
||||
*/
|
||||
private Double avgValue;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user