|
@@ -813,7 +813,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
Long districtId = v.getDistrictId();
|
|
|
vo.setDeviceNum(v.getDeviceNum());
|
|
|
vo.setDistrictId(v.getDistrictId());
|
|
|
- vo.setDistrictName(v.getDistrictId()==-1L ? "未分配区域" : districtMap.get(v.getDistrictId()));
|
|
|
+ vo.setDistrictName(v.getDistrictId() == -1L ? "未分配区域" : districtMap.get(v.getDistrictId()));
|
|
|
//区域下的设备列表
|
|
|
List<DeviceInfoDto.MercHomeDeviceVo> deviceInfos = BeanUtil.copyToList(deviceMap.get(districtId), DeviceInfoDto.MercHomeDeviceVo.class);
|
|
|
if (CollUtil.isEmpty(deviceInfos)) {
|
|
@@ -888,6 +888,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
device.setTempValue(deviceStatus.getTempValue());
|
|
|
device.setDeviceStateL(deviceStateL);
|
|
|
device.setDeviceStateR(deviceStateR);
|
|
|
+ device.setSysPower(deviceStatus.getSysPower());
|
|
|
DeviceLockState deviceLockStateL = DeviceLockState.getEnumByCode(deviceStateL);
|
|
|
DeviceLockState deviceLockStateR = DeviceLockState.getEnumByCode(deviceStateR);
|
|
|
device.setDeviceStateRName(deviceLockStateR == null ? "未知" : deviceLockStateR.getDescription());
|