添加实体
This commit is contained in:
parent
f13bc31085
commit
feb9868829
|
|
@ -2,6 +2,8 @@ package org.jeecg.modules.base.entity;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class StatisticsResult {
|
public class StatisticsResult {
|
||||||
private String nuclideName;
|
private String nuclideName;
|
||||||
|
|
@ -9,4 +11,5 @@ public class StatisticsResult {
|
||||||
private Double percentile25; // 25分位数
|
private Double percentile25; // 25分位数
|
||||||
private Double percentile75; // 75分位数
|
private Double percentile75; // 75分位数
|
||||||
private int dataCount; // 有效数据量
|
private int dataCount; // 有效数据量
|
||||||
|
private Date collectStop;
|
||||||
}
|
}
|
||||||
|
|
@ -3,11 +3,15 @@ package org.jeecg.modules.base.entity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ThresholdMetric implements Serializable {
|
public class ThresholdMetric implements Serializable {
|
||||||
private Integer stationId;
|
private Integer stationId;//站点ID
|
||||||
private Integer sampleId;
|
private Integer sampleId;//样品ID
|
||||||
private String nuclideName;
|
private String nuclideName;//核素名称
|
||||||
private String concentration;
|
private String concentration;//浓度值
|
||||||
|
private Date collectStop;//采集停止时间
|
||||||
|
private List<Double> concentrations;// 浓度列表
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
package org.jeecg.modules.base.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
@Data
|
||||||
|
public class ThresholdMetricResults {
|
||||||
|
private Integer stationId;//站点ID
|
||||||
|
private String nuclideName;//核素名称
|
||||||
|
private Date collectStop;//采集停止时间
|
||||||
|
private List<Double> concentrations;// 浓度列表
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
package org.jeecg.modules.base.enums;
|
||||||
|
|
||||||
|
public enum TransportTaskCloseStatusEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 未关闭
|
||||||
|
*/
|
||||||
|
NOT_CLOSED(0),
|
||||||
|
/**
|
||||||
|
* 已关闭
|
||||||
|
*/
|
||||||
|
CLOSE(1);
|
||||||
|
|
||||||
|
private Integer value;
|
||||||
|
|
||||||
|
TransportTaskCloseStatusEnum(Integer value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getValue(){
|
||||||
|
return this.value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
package org.jeecg.modules.base.enums;
|
||||||
|
|
||||||
|
public enum TransportTaskStatusEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 执行失败
|
||||||
|
*/
|
||||||
|
FAILURE(-1),
|
||||||
|
/**
|
||||||
|
* 未开始
|
||||||
|
*/
|
||||||
|
NOT_STARTED(0),
|
||||||
|
/**
|
||||||
|
* 执行中
|
||||||
|
*/
|
||||||
|
IN_OPERATION(1),
|
||||||
|
/**
|
||||||
|
* 已完成
|
||||||
|
*/
|
||||||
|
COMPLETED(2),
|
||||||
|
/**
|
||||||
|
* 缺少气象数据
|
||||||
|
*/
|
||||||
|
LACK_MET_DATA(3);
|
||||||
|
|
||||||
|
private Integer value;
|
||||||
|
|
||||||
|
TransportTaskStatusEnum(Integer value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getValue(){
|
||||||
|
return this.value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
package org.jeecg.modules.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 统计数据传输对象 (StatDTO)
|
||||||
|
* 用于承载数据库按小时分组统计后的结果。
|
||||||
|
* 对应 SQL: SELECT EXTRACT(HOUR FROM ...) AS hour_key, COUNT(*) AS count_val
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class StatDTO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小时键(0 - 23),对应 SQL 中的 hour_key
|
||||||
|
*/
|
||||||
|
private int hourKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 该小时的记录总数,对应 SQL 中的 count_val
|
||||||
|
*/
|
||||||
|
private long countVal;
|
||||||
|
}
|
||||||
|
|
@ -101,5 +101,9 @@ public class SpectrumServiceQuotes {
|
||||||
|
|
||||||
// 获取阈值信息
|
// 获取阈值信息
|
||||||
private final IGardsThresholdService gardsThresholdService;
|
private final IGardsThresholdService gardsThresholdService;
|
||||||
|
/**
|
||||||
|
* 输运模拟
|
||||||
|
*/
|
||||||
|
private final GardsTransportStatusService gardsTransportStatusService;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
package org.jeecg.modules.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ThresholdResultHistory {
|
||||||
|
|
||||||
|
private String nuclideName;
|
||||||
|
private Double thresholdValue;
|
||||||
|
private String calculationTime;
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date collectStop;
|
||||||
|
private String category;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
package org.jeecg.modules.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
@Data
|
||||||
|
public class XeCategoryHistory {
|
||||||
|
public String title;
|
||||||
|
public Integer width = 1000;
|
||||||
|
public Integer height = 600;
|
||||||
|
public Boolean save = true;
|
||||||
|
|
||||||
|
public List<Point> levelA; // 普通散点
|
||||||
|
public List<ErrorPoint> levelB; // 带误差线
|
||||||
|
public List<ErrorPoint> levelC; // 带误差线
|
||||||
|
|
||||||
|
public List<Point> mdc; // 动态线条数据
|
||||||
|
public List<Point> lc; // 动态线条数据
|
||||||
|
public List<Point> thresholds; // 动态线条数据
|
||||||
|
|
||||||
|
public XeCategoryHistory(){
|
||||||
|
this.levelA = new ArrayList<>();
|
||||||
|
this.levelB = new ArrayList<>();
|
||||||
|
this.levelC = new ArrayList<>();
|
||||||
|
this.mdc = new ArrayList<>();
|
||||||
|
this.lc = new ArrayList<>();
|
||||||
|
this.thresholds = new ArrayList<>();
|
||||||
|
}
|
||||||
|
public static class Point {
|
||||||
|
public String date; // 日期字符串,例如 "2025-01-15"
|
||||||
|
public double y;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class ErrorPoint {
|
||||||
|
public String date;
|
||||||
|
public double y;
|
||||||
|
public double yError;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user