1.pms主网测点数据上送功能
This commit is contained in:
@@ -68,6 +68,15 @@ public interface MonitorClient {
|
||||
@PostMapping("getMonitorList")
|
||||
HttpResult<List<Monitor>> getMonitorList(@RequestBody List<String> monitorIds);
|
||||
|
||||
|
||||
/**
|
||||
* 通过同源监测点编码获取监测点信息
|
||||
* @author cdf
|
||||
* @date 2022/11/29
|
||||
*/
|
||||
@PostMapping("getMonitorListByMid")
|
||||
HttpResult<List<Monitor>> getMonitorListByMid(@RequestBody List<String> midIds);
|
||||
|
||||
@PostMapping("getMonitorPage")
|
||||
HttpResult<Page<Monitor>> getMonitorPage(@RequestBody TerminalQueryParam baseParam);
|
||||
|
||||
|
||||
@@ -32,4 +32,8 @@ public interface PmsTerminalClient {
|
||||
*/
|
||||
@PostMapping("/getTerminalSelectList")
|
||||
HttpResult<List<PmsTerminal>> getTerminalSelectList(@RequestBody PmsBaseParam pmsBaseParam);
|
||||
|
||||
@PostMapping("/getTerminalSelectByIds")
|
||||
HttpResult<List<PmsTerminal>> getTerminalSelectByIds(@RequestBody List<String> ids);
|
||||
|
||||
}
|
||||
|
||||
@@ -63,6 +63,12 @@ public class MonitorClientFallbackFactory implements FallbackFactory<MonitorClie
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<Monitor>> getMonitorListByMid(List<String> midIds) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "使用同源监测点编码获取监测点信息 ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Page<Monitor>> getMonitorPage(TerminalQueryParam baseParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "分页获取主网监测点数据 ", throwable.toString());
|
||||
|
||||
@@ -36,6 +36,12 @@ public class PmsTerminalClientFallbackFactory implements FallbackFactory<PmsTerm
|
||||
log.error("{}异常,降级处理,异常为:{}", "获取主网所有终端", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<List<PmsTerminal>> getTerminalSelectByIds(List<String> ids) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "使用装置id集合查询装置信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user