Browse Source

问题处理

yzc 1 year ago
parent
commit
fae690192d

+ 4 - 0
hx-iot/src/main/java/com/fjhx/iot/service/tda/impl/TdaDeviceServiceImpl.java

@@ -125,6 +125,10 @@ public class TdaDeviceServiceImpl extends ServiceImpl<TdaDeviceMapper, TdaDevice
         wrapper.eq("td", TdaDevice::getUserUuid, dto.getUserUuid());
         TdaDeviceVo result = baseMapper.detail(wrapper);
 
+        if (ObjectUtil.isEmpty(result)) {
+            return result;
+        }
+
         //赋值产品信息
         ProductInfo productInfo = productInfoService.getById(result.getProductId());
         if (ObjectUtil.isNotEmpty(productInfo)) {