装置在线率调度任务
This commit is contained in:
@@ -219,6 +219,15 @@ public interface LineFeignClient {
|
||||
@PostMapping("getDeviceList")
|
||||
HttpResult<List<String>> getDeviceList();
|
||||
|
||||
/**
|
||||
* 功能描述: 获取指定条件的监测点id(实际装置、投运、稳态或者双系统)
|
||||
* @author xy
|
||||
* @date 2022/7/8 14:24
|
||||
* @return 装置id集合
|
||||
*/
|
||||
@PostMapping("getRunLineIdsList")
|
||||
HttpResult<List<String>> getRunLineIdsList();
|
||||
|
||||
/**
|
||||
* 获取当前状态在线的监测点数量
|
||||
* @param lineIds 监测点集合
|
||||
@@ -239,4 +248,14 @@ public interface LineFeignClient {
|
||||
@PostMapping("getOnOrUnLine")
|
||||
HttpResult<List<String>> getOnOrUnLine(@RequestBody LineBaseQueryParam lineBaseQueryParam);
|
||||
|
||||
/**
|
||||
* 获取监测点设备id
|
||||
* @param lineIds 监测点集合
|
||||
* @return 监测点设备id
|
||||
* @author cdf
|
||||
* @date 2022/8/1
|
||||
*/
|
||||
@PostMapping("getOnLineDevLine")
|
||||
HttpResult<List<OnlineLineDTO>> getOnLineDevLine(@RequestBody List<String> lineIds);
|
||||
|
||||
}
|
||||
|
||||
@@ -168,6 +168,12 @@ public class LineFeignClientFallbackFactory implements FallbackFactory<LineFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<String>> getRunLineIdsList() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点Id集合: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Integer> getOnLineCount(List<String> lineIds) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取在线监测点数量异常: ", throwable.toString());
|
||||
@@ -180,6 +186,12 @@ public class LineFeignClientFallbackFactory implements FallbackFactory<LineFeign
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<OnlineLineDTO>> getOnLineDevLine(List<String> lineIds) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取监测点设备id异常: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.njcn.device.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2022/9/23
|
||||
*/
|
||||
@Data
|
||||
public class OnlineLineDTO {
|
||||
|
||||
private String lineId;
|
||||
|
||||
private String devId;
|
||||
}
|
||||
Reference in New Issue
Block a user