|
@@ -786,6 +786,22 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<SbInfoVO> getChildSbByIds(List<String> ids) {
|
|
|
+ SbInfoDTO queryDTO = new SbInfoDTO();
|
|
|
+ queryDTO.setIds(ids);
|
|
|
+ List<SbInfoVO> list = mapper.selectVOList(queryDTO);
|
|
|
+ if(list != null && list.size() > 0){
|
|
|
+ list.forEach(item -> {
|
|
|
+ // 获取子设备
|
|
|
+ SbInfoDTO query = new SbInfoDTO();
|
|
|
+ query.setParentId(item.getId());
|
|
|
+ item.setChildren(mapper.selectVOList(query));
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 更新和记录修改
|
|
|
* @param sbInfos
|