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