|
|
|
@ -246,8 +246,12 @@ public class IotThingDictRelationServiceImpl extends BaseServiceImpl<IotThingDic |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public IotThingDictRelationDTO findByIds(List<Long> ids) { |
|
|
|
return mapper.selectOneByQueryAs(new QueryWrapper().in(IotThingDictRelationEntity::getId, ids), IotThingDictRelationDTO.class); |
|
|
|
public IotThingDictRelationDTO findByIds(List<String> ids) { |
|
|
|
if(CollectionUtils.isEmpty(ids)){ |
|
|
|
throw new SysException("参数不能为空"); |
|
|
|
} |
|
|
|
List<Long> idList = ids.stream().map(Long::valueOf).toList(); |
|
|
|
return mapper.selectOneByQueryAs(new QueryWrapper().in(IotThingDictRelationEntity::getId, idList), IotThingDictRelationDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|