|
@@ -2,6 +2,7 @@ package com.xy.service;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.collection.ListUtil;
|
|
|
import cn.hutool.core.date.DatePattern;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.text.StrBuilder;
|
|
@@ -625,7 +626,13 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ //在线排序
|
|
|
+ if (CollUtil.isNotEmpty(deviceInfos)) {
|
|
|
+ deviceInfos = ListUtil.sortByProperty(deviceInfos, LambdaUtils.getProperty(DeviceInfoDto.MercHomeDeviceVo::getNetState));
|
|
|
+ }
|
|
|
vo.setDeviceInfos(deviceInfos);
|
|
|
+
|
|
|
dataList.add(vo);
|
|
|
}
|
|
|
|