1.用能系统空调关机策略

2.终端模块对外接口
This commit is contained in:
2022-08-04 14:05:45 +08:00
parent 5c288be99b
commit 9a26722f14
16 changed files with 375 additions and 189 deletions

View File

@@ -210,4 +210,14 @@ public interface LineFeignClient {
@PostMapping("getDeviceList")
HttpResult<List<String>> getDeviceList();
/**
* 获取当前状态在线的监测点数量
* @param lineIds 监测点集合
* @return 在线的监测点数量
* @author cdf
* @date 2022/8/1
*/
@PostMapping("getOnLineCount")
HttpResult<Integer> getOnLineCount(@RequestBody List<String> lineIds);
}

View File

@@ -161,6 +161,12 @@ public class LineFeignClientFallbackFactory implements FallbackFactory<LineFeign
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<Integer> getOnLineCount(List<String> lineIds) {
log.error("{}异常,降级处理,异常为:{}", "或取在线监测点数量异常: ", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}