1.灿能云代码调整
This commit is contained in:
@@ -153,4 +153,12 @@ public interface GeneralDeviceInfoClient {
|
||||
*/
|
||||
@PostMapping("/getTopMsgInfoByIds")
|
||||
HttpResult<List<TopMsgPO>> getTopMsgInfoByIds(@RequestBody OnlineRateParam param);
|
||||
|
||||
/**
|
||||
* 根据终端id集合获取总终端在线率
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getTotalOnlineRates")
|
||||
HttpResult<Float> getTotalOnlineRates(@RequestBody OnlineRateParam param);
|
||||
}
|
||||
|
||||
@@ -118,6 +118,12 @@ public class GeneralDeviceInfoClientFallbackFactory implements FallbackFactory<G
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据topIds集合获取终端信息", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Float> getTotalOnlineRates(OnlineRateParam param) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "根据终端id集合获取总终端在线率", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -23,5 +23,5 @@ public class RStatOnlinerateVO {
|
||||
|
||||
private Integer offlineMin;
|
||||
|
||||
private Integer onlineRate;
|
||||
private Float onlineRate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user