|
@@ -606,7 +606,11 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
//联网状态
|
|
//联网状态
|
|
Integer netState = deviceStatus == null ? DeviceNetSateType.DISCONNECT.getCode() : deviceStatus.getNetState();
|
|
Integer netState = deviceStatus == null ? DeviceNetSateType.DISCONNECT.getCode() : deviceStatus.getNetState();
|
|
device.setNetState(netState);
|
|
device.setNetState(netState);
|
|
- device.setNetStateName(netState == null ? StrUtil.EMPTY : DeviceNetSateType.getEnumByCode(deviceStatus.getNetState()).getDescription());
|
|
|
|
|
|
+ if (netState == null) {
|
|
|
|
+ device.setNetStateName(StrUtil.EMPTY);
|
|
|
|
+ } else {
|
|
|
|
+ device.setNetStateName(DeviceNetSateType.getEnumByCode(deviceStatus.getNetState()).getDescription());
|
|
|
|
+ }
|
|
|
|
|
|
});
|
|
});
|
|
vo.setDeviceInfos(deviceInfos);
|
|
vo.setDeviceInfos(deviceInfos);
|