From b74287c578cb3e23adcf4cd147617242adf3317a Mon Sep 17 00:00:00 2001 From: gaoguangchao <443960933@qq.com> Date: Tue, 23 Jul 2024 19:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=BC=E5=AE=B9=E5=89=8D?= =?UTF-8?q?=E7=AB=AFtime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/controller/DcDeviceOnlineController.java | 3 +++ 1 file changed, 3 insertions(+) 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);