|
@ -63,6 +63,9 @@ public class DcDeviceOnlineController extends BaseController { |
|
|
if(ObjectUtils.isEmpty(deviceTypes)) { |
|
|
if(ObjectUtils.isEmpty(deviceTypes)) { |
|
|
return getDataTable(new ArrayList<>()); |
|
|
return getDataTable(new ArrayList<>()); |
|
|
} |
|
|
} |
|
|
|
|
|
if(StringUtil.isEmpty(orderByField) ||"time".equals(orderByField)) { |
|
|
|
|
|
orderByField = "online_rate"; |
|
|
|
|
|
} |
|
|
startPage(); |
|
|
startPage(); |
|
|
List<OnlineSum> sums = onlineSumService.queryByDeviceTypesOfToday(deviceTypes, orderByField, orderDirection, searchValue); |
|
|
List<OnlineSum> sums = onlineSumService.queryByDeviceTypesOfToday(deviceTypes, orderByField, orderDirection, searchValue); |
|
|
Map<String,OnlineSum> onlineSumMap = redisCache.getCacheMap(RedisKeyConstants.DEVICE_ONLINE); |
|
|
Map<String,OnlineSum> onlineSumMap = redisCache.getCacheMap(RedisKeyConstants.DEVICE_ONLINE); |
|
|