diff --git a/zc-business/src/main/java/com/zc/business/controller/DcDeviceOnlineController.java b/zc-business/src/main/java/com/zc/business/controller/DcDeviceOnlineController.java index e1054b1c..30dcf139 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcDeviceOnlineController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcDeviceOnlineController.java @@ -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 sums = onlineSumService.queryByDeviceTypesOfToday(deviceTypes, orderByField, orderDirection, searchValue); Map onlineSumMap = redisCache.getCacheMap(RedisKeyConstants.DEVICE_ONLINE);