在线监测功能
1.预处理生成超标数据和无数据监测点数据 2.分页查询数据 3.生成预告警单(处理中)
This commit is contained in:
@@ -47,4 +47,7 @@ public interface DeptLineFeignClient {
|
||||
*/
|
||||
@PostMapping("/getLineNodeByDeptId")
|
||||
HttpResult<List<String>> getLineNodeByDeptId(@RequestParam("id") String id);
|
||||
|
||||
@PostMapping("/getAllData")
|
||||
HttpResult<List<DeptLine>> getAllData();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
package com.njcn.device.pq.api;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.device.pq.api.fallback.LineFeignClientFallbackFactory;
|
||||
import com.njcn.device.pq.pojo.dto.*;
|
||||
import com.njcn.device.pq.pojo.param.DataParam;
|
||||
@@ -343,4 +347,10 @@ public interface LineFeignClient {
|
||||
|
||||
@PostMapping("/getDeptDeviceDetailData")
|
||||
HttpResult<List<LineDetailVO.Detail>> getDeptDeviceDetailData(@RequestBody DataParam param);
|
||||
|
||||
@PostMapping("/getNoDataLine")
|
||||
HttpResult<List<LineDetailVO.noDataLineInfo>> getNoDataLine();
|
||||
|
||||
@PostMapping("/getReportLineInfo")
|
||||
HttpResult<List<ReportLineInfoVo>> getReportLineInfo(@RequestBody List<String> ids);
|
||||
}
|
||||
|
||||
@@ -68,6 +68,12 @@ public class DeptLineFeignClientFallbackFactory implements FallbackFactory<DeptL
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据部门信息id查询监测点id集合", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<DeptLine>> getAllData() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取部门监测点表所有数据", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -269,6 +269,18 @@ public class LineFeignClientFallbackFactory implements FallbackFactory<LineFeign
|
||||
log.error("{}异常,降级处理,异常为:{}", "更新监测点运行状态: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<LineDetailVO.noDataLineInfo>> getNoDataLine() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取当日无数据的监测点: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<ReportLineInfoVo>> getReportLineInfo(List<String> ids) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据监测点id获取预告警单基础信息: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,4 +93,17 @@ public class LineDetailVO implements Serializable {
|
||||
@ApiModelProperty("已用流量占比")
|
||||
private Float flowProportion;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class noDataLineInfo extends LineDetailVO implements Serializable{
|
||||
|
||||
@ApiModelProperty("监测点Id")
|
||||
private String lineId;
|
||||
|
||||
@ApiModelProperty("终端id")
|
||||
private String devId;
|
||||
|
||||
@ApiModelProperty("最新数据时间")
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.device.pq.pojo.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author xy
|
||||
*/
|
||||
@Data
|
||||
public class ReportLineInfoVo implements Serializable {
|
||||
|
||||
@ApiModelProperty("供电公司名称")
|
||||
private String gdName;
|
||||
|
||||
@ApiModelProperty("监测点电压等级")
|
||||
private String lineVoltage;
|
||||
|
||||
@ApiModelProperty("监测点id")
|
||||
private String lineId;
|
||||
|
||||
@ApiModelProperty("监测点名称")
|
||||
private String lineName;
|
||||
|
||||
@ApiModelProperty("所属电站")
|
||||
private String subName;
|
||||
|
||||
@ApiModelProperty("监测对象名称")
|
||||
private String objName;
|
||||
|
||||
@ApiModelProperty("电网侧变电站")
|
||||
private String subVName;
|
||||
|
||||
@ApiModelProperty("最新数据时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty("监测装置网络参数")
|
||||
private String ip;
|
||||
|
||||
@ApiModelProperty("最小短路容量")
|
||||
private Double shortCapacity;
|
||||
|
||||
@ApiModelProperty("供电设备容量")
|
||||
private Double devCapacity;
|
||||
|
||||
@ApiModelProperty("供电设备容量")
|
||||
private Double standardCapacity;
|
||||
|
||||
@ApiModelProperty("超标天数")
|
||||
private Integer overDays;
|
||||
}
|
||||
Reference in New Issue
Block a user