|
@@ -110,14 +110,19 @@ public class IotHomeServiceImpl implements IIotHomeService {
|
|
|
for(IotHomeDeviceListResVo item : dataList) {
|
|
for(IotHomeDeviceListResVo item : dataList) {
|
|
|
IotDevice deviceInfo = deviceMap.get(item.getDevBid());
|
|
IotDevice deviceInfo = deviceMap.get(item.getDevBid());
|
|
|
// 测试使用
|
|
// 测试使用
|
|
|
|
|
+ String devStatus = "0";
|
|
|
if(deviceInfo == null) {
|
|
if(deviceInfo == null) {
|
|
|
deviceInfo = new IotDevice();
|
|
deviceInfo = new IotDevice();
|
|
|
-// continue;
|
|
|
|
|
|
|
+ }else{
|
|
|
|
|
+ devStatus = deviceInfo.getDevStatus();
|
|
|
}
|
|
}
|
|
|
|
|
+ item.setDevStatus(devStatus);
|
|
|
// 正式使用
|
|
// 正式使用
|
|
|
// if(deviceInfo == null){
|
|
// if(deviceInfo == null){
|
|
|
// continue;
|
|
// continue;
|
|
|
// }
|
|
// }
|
|
|
|
|
+// item.setDevStatus(deviceInfo.getDevStatus());
|
|
|
|
|
+
|
|
|
item.setDevName(deviceInfo.getDevName());
|
|
item.setDevName(deviceInfo.getDevName());
|
|
|
resultList.add(item);
|
|
resultList.add(item);
|
|
|
}
|
|
}
|