Browse Source

修改兼容前端time

develop
gaoguangchao 4 months ago
parent
commit
b74287c578
  1. 3
      zc-business/src/main/java/com/zc/business/controller/DcDeviceOnlineController.java

3
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<OnlineSum> sums = onlineSumService.queryByDeviceTypesOfToday(deviceTypes, orderByField, orderDirection, searchValue);
Map<String,OnlineSum> onlineSumMap = redisCache.getCacheMap(RedisKeyConstants.DEVICE_ONLINE);

Loading…
Cancel
Save