|
@@ -630,6 +630,15 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
device.setNetStateName(DeviceNetSateType.getEnumByCode(deviceStatus.getNetState()).getDescription());
|
|
|
}
|
|
|
|
|
|
+ Integer deviceStateL = deviceStatus.getDeviceStateL();
|
|
|
+ Integer deviceStateR = deviceStatus.getDeviceStateR();
|
|
|
+ device.setDeviceStateL(deviceStateL);
|
|
|
+ device.setDeviceStateR(deviceStateR);
|
|
|
+ DeviceLockState deviceLockStateL = DeviceLockState.getEnumByCode(deviceStateL);
|
|
|
+ DeviceLockState deviceLockStateR = DeviceLockState.getEnumByCode(deviceStateR);
|
|
|
+ device.setDeviceStateRName(deviceLockStateR == null ? "未知" : deviceLockStateR.getDescription());
|
|
|
+ device.setDeviceStateLName(deviceLockStateL == null ? "未知" : deviceLockStateL.getDescription());
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//在线排序
|