Showing
1 changed file
with
1 additions
and
6 deletions
@@ -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 |