|
@@ -209,6 +209,9 @@ public class WebStatsGatewayImpl implements WebStatsGateway {
|
|
|
res.setSystemGuardDay((int) ChronoUnit.DAYS.between(tenant.getCreateTime(), LocalDateTime.now()));
|
|
|
|
|
|
Map<String, BigDecimal> statInfo = devInfoService.queryStatInfo(params.getTenantId());
|
|
|
+ if (statInfo == null) {
|
|
|
+ return res;
|
|
|
+ }
|
|
|
res.setDeviceCount(statInfo.get("deviceCount") == null ? 0 :statInfo.get("deviceCount").intValue());
|
|
|
res.setOnlineCount(statInfo.get("onlineCount") == null ? 0 :statInfo.get("onlineCount").intValue());
|
|
|
|