冀北电网一张图,变电站、终端和监测点信息接口编写
This commit is contained in:
@@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
/**
|
||||
* 监测点数据完整性
|
||||
* 数据单位
|
||||
* @author cdf
|
||||
* @date 2023/6/7
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.device.pq.pojo.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2022/4/25 10:40
|
||||
*/
|
||||
@Data
|
||||
public class PollutionGridDiagramDTO extends PollutionSubstationDTO{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("供电公司")
|
||||
private String powerCompany;
|
||||
|
||||
@ApiModelProperty("数据")
|
||||
private Double dataV = 3.14159;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.njcn.device.pq.pojo.param;
|
||||
|
||||
import com.njcn.web.pojo.param.BaseParam;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wr
|
||||
* @description 冀北电网一张图入参
|
||||
* @date 2024/4/16 13:54
|
||||
*/
|
||||
@Data
|
||||
public class GridDiagramParam extends BaseParam {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "单位id")
|
||||
private String orgId;
|
||||
|
||||
@ApiModelProperty(name="type",value="类型(1年 2季度 3月份 4周 5日)")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(name="deviceInfoParam",value="")
|
||||
private DeviceInfoParam deviceInfoParam;
|
||||
}
|
||||
@@ -26,4 +26,8 @@ public class TerminalMainQueryParam extends BaseParam {
|
||||
private String lineGrade;
|
||||
@ApiModelProperty(name = "装置id")
|
||||
private String devId;
|
||||
@ApiModelProperty(name = "是否是国网上送监测点 1:是 0:否")
|
||||
private Integer monitorFlag;
|
||||
@ApiModelProperty(name = "单位id")
|
||||
private String orgId;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.njcn.device.pq.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
@@ -31,6 +32,7 @@ public class RStatOnlinerateD {
|
||||
private Integer onlineMin;
|
||||
|
||||
private Integer offlineMin;
|
||||
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private Float onlineRate;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.njcn.device.pq.pojo.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wr
|
||||
* @description
|
||||
* @date 2024/4/16 14:55
|
||||
*/
|
||||
@Data
|
||||
public class GridDiagramVO {
|
||||
|
||||
|
||||
@ApiModelProperty(name = "info", value = "全部监测点信息")
|
||||
private List<?> info;
|
||||
|
||||
@ApiModelProperty(name = "gwInfo", value = "国网监测点信息信息")
|
||||
private List<?> gwInfo;
|
||||
|
||||
@Data
|
||||
public static class LineStatistics {
|
||||
@ApiModelProperty(name = "orgId", value = "单位id")
|
||||
private String orgId;
|
||||
|
||||
@ApiModelProperty(name = "orgName", value = "单位名称")
|
||||
private String orgName;
|
||||
|
||||
@ApiModelProperty(name = "data", value = "数据")
|
||||
private List<?> data;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class LineStatisticsData {
|
||||
|
||||
@ApiModelProperty(name = "num", value = "监测点个数")
|
||||
private Integer num;
|
||||
|
||||
@ApiModelProperty(name = "num", value = "在线监测点数")
|
||||
private Integer onLineNum;
|
||||
|
||||
@ApiModelProperty(name = "onLineRate", value = "数据在线率")
|
||||
private Float onLineRate;
|
||||
|
||||
@ApiModelProperty(name = "integrityRate", value = "数据完整率")
|
||||
private Float integrityRate;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class StatisticsData {
|
||||
|
||||
@ApiModelProperty(name = "numOne", value = "数据")
|
||||
private Long numOne;
|
||||
|
||||
@ApiModelProperty(name = "numTwo", value = "数据")
|
||||
private Long numTwo;
|
||||
|
||||
}
|
||||
@Data
|
||||
public static class DeviceData {
|
||||
|
||||
@ApiModelProperty(name = "orgId", value = "单位id")
|
||||
private String orgId;
|
||||
|
||||
@ApiModelProperty(name = "orgName", value = "单位名称")
|
||||
private String orgName;
|
||||
|
||||
@ApiModelProperty(name = "devCount", value = "终端数量")
|
||||
private Long devCount;
|
||||
|
||||
@ApiModelProperty(name = "onlineEvaluate", value = "终端在线率评价")
|
||||
private Double onlineEvaluate;
|
||||
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class LineData {
|
||||
|
||||
@ApiModelProperty(name = "orgId", value = "单位id")
|
||||
private String orgId;
|
||||
|
||||
@ApiModelProperty(name = "orgName", value = "单位名称")
|
||||
private String orgName;
|
||||
|
||||
@ApiModelProperty(name = "onLineRate", value = "数据在线率")
|
||||
private Float onLineRate;
|
||||
|
||||
@ApiModelProperty(name = "integrityRate", value = "数据完整率")
|
||||
private Float integrityRate;
|
||||
|
||||
@ApiModelProperty(name = "outOfStandardRate", value = "超标监测点占比")
|
||||
private Float outOfStandardRate;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,9 @@ public class HalfReportVO implements Serializable {
|
||||
@ApiModelProperty("监测点通讯状态")
|
||||
private String comFlag;
|
||||
|
||||
@ApiModelProperty("监测点电压等级")
|
||||
private String voltageScale;
|
||||
|
||||
@ApiModelProperty("投运时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime loginTime;
|
||||
|
||||
Reference in New Issue
Block a user