在线状态修改优化4
This commit is contained in:
@ -126,7 +126,7 @@ public class DeviceBizService {
|
|||||||
List<WebDeviceVo> records = result.getRecords();
|
List<WebDeviceVo> records = result.getRecords();
|
||||||
if(records != null && !records.isEmpty()){
|
if(records != null && !records.isEmpty()){
|
||||||
records.forEach(item -> {
|
records.forEach(item -> {
|
||||||
if(item.getCommunicationMode()!=null && item.getCommunicationMode() == 0){
|
if(item.getCommunicationMode()!=null && (item.getCommunicationMode() == 0 || item.getCommunicationMode() == 2)){
|
||||||
|
|
||||||
//设备在线状态
|
//设备在线状态
|
||||||
String onlineStatus = RedisUtils.getCacheObject(GLOBAL_REDIS_KEY+ DEVICE_KEY_PREFIX+ item.getDeviceImei() + DeviceRedisKeyConstants.DEVICE_ONLINE_STATUS_KEY_PREFIX);
|
String onlineStatus = RedisUtils.getCacheObject(GLOBAL_REDIS_KEY+ DEVICE_KEY_PREFIX+ item.getDeviceImei() + DeviceRedisKeyConstants.DEVICE_ONLINE_STATUS_KEY_PREFIX);
|
||||||
|
|||||||
@ -251,6 +251,7 @@
|
|||||||
dt.pc_model_dictionary detailPageUrl,
|
dt.pc_model_dictionary detailPageUrl,
|
||||||
ap.name personnelBy,
|
ap.name personnelBy,
|
||||||
d.device_status,
|
d.device_status,
|
||||||
|
d.online_status,
|
||||||
c.binding_time
|
c.binding_time
|
||||||
from device d
|
from device d
|
||||||
inner join device_type dt on d.device_type = dt.id
|
inner join device_type dt on d.device_type = dt.id
|
||||||
|
|||||||
Reference in New Issue
Block a user