|
|
|
@ -708,6 +708,15 @@ public class IotThingRelationDetailServiceImpl extends BaseServiceImpl<IotThingR |
|
|
|
, IotThingRelationDetailDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<IotThingRelationDetailDTO> findRootDetailChildNodeByRootIdAndToIdAndRootThingId(Long rootId, Long toId, Long rootThingId) { |
|
|
|
return mapper.selectListByQueryAs(QueryWrapper.create() |
|
|
|
.eq(IotThingRelationDetailEntity::getRootId, rootId) |
|
|
|
.eq(IotThingRelationDetailEntity::getToId, toId) |
|
|
|
.eq(IotThingRelationDetailEntity::getRootThingId, rootThingId, ObjectUtil.isNotNull(rootThingId)) |
|
|
|
, IotThingRelationDetailDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public IotThingRelationDetailDTO findRootDetailParentNodeByRootIdAndToIdAndRootThingId(Long rootId, Long toId, Long rootThingId) { |
|
|
|
return mapper.selectOneByQueryAs(QueryWrapper.create() |
|
|
|
|