Commit eb21d2d64729dbe4a524f852f3250a1f5f777bf3

Authored by 云中非
1 parent a8600ad3

fix: 网关子设备验证网关是否存在问题

@@ -262,12 +262,7 @@ public class YtDeviceServiceImpl extends AbstractBaseService<DeviceMapper, YtDev @@ -262,12 +262,7 @@ public class YtDeviceServiceImpl extends AbstractBaseService<DeviceMapper, YtDev
262 if (StringUtils.isEmpty(tenantId) || StringUtils.isEmpty(deviceId)) { 262 if (StringUtils.isEmpty(tenantId) || StringUtils.isEmpty(deviceId)) {
263 throw new YtDataValidationException(ErrorMessage.INVALID_PARAMETER.getMessage()); 263 throw new YtDataValidationException(ErrorMessage.INVALID_PARAMETER.getMessage());
264 } 264 }
265 - return baseMapper  
266 - .selectOne(  
267 - new LambdaQueryWrapper<YtDevice>()  
268 - .eq(YtDevice::getTenantId, tenantId)  
269 - .eq(YtDevice::getId, deviceId))  
270 - .getDTO(DeviceDTO.class); 265 + return baseMapper.selectDetail(tenantId,deviceId);
271 } 266 }
272 267
273 @Override 268 @Override