|
@@ -797,7 +797,7 @@ public class SbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, SbInfo, SbI
|
|
if(list != null && list.size() > 0){
|
|
if(list != null && list.size() > 0){
|
|
list.forEach(item -> {
|
|
list.forEach(item -> {
|
|
// 子设备且父设备在maps中不添加
|
|
// 子设备且父设备在maps中不添加
|
|
- if(item.getIsChild() == 1){
|
|
|
|
|
|
+ if(item.getIsChild() != null && item.getIsChild() == 1){
|
|
if(StringUtils.isBlank(maps.get(item.getParentId()))){
|
|
if(StringUtils.isBlank(maps.get(item.getParentId()))){
|
|
resultList.add(item);
|
|
resultList.add(item);
|
|
}
|
|
}
|