fix: selectBatchIds 已过期
This commit is contained in:
@@ -155,7 +155,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void updateDeviceGroup(IotDeviceUpdateGroupReqVO updateReqVO) {
|
||||
// 1.1 校验设备存在
|
||||
List<IotDeviceDO> devices = deviceMapper.selectBatchIds(updateReqVO.getIds());
|
||||
List<IotDeviceDO> devices = deviceMapper.selectByIds(updateReqVO.getIds());
|
||||
if (CollUtil.isEmpty(devices)) {
|
||||
return;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
||||
if (CollUtil.isEmpty(ids)) {
|
||||
return;
|
||||
}
|
||||
List<IotDeviceDO> devices = deviceMapper.selectBatchIds(ids);
|
||||
List<IotDeviceDO> devices = deviceMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(devices)) {
|
||||
return;
|
||||
}
|
||||
@@ -451,4 +451,4 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -78,7 +78,7 @@ public class IotProductCategoryServiceImpl implements IotProductCategoryService
|
||||
if (CollUtil.isEmpty(ids)) {
|
||||
return CollUtil.newArrayList();
|
||||
}
|
||||
return iotProductCategoryMapper.selectBatchIds(ids);
|
||||
return iotProductCategoryMapper.selectByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -120,4 +120,4 @@ public class IotProductCategoryServiceImpl implements IotProductCategoryService
|
||||
return categoryDeviceCountMap;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user