空指针
This commit is contained in:
@@ -36,10 +36,12 @@ public class MkCarouselServiceImpl extends ServiceImpl<MkCarouselMapper, MkCarou
|
|||||||
}
|
}
|
||||||
List<MkCarousel> list = list(queryWrapper);
|
List<MkCarousel> list = list(queryWrapper);
|
||||||
list.forEach(mkCarousel -> {
|
list.forEach(mkCarousel -> {
|
||||||
|
if (mkCarousel.getJumpPageId() != null) {
|
||||||
MiniAppPages miniAppPages = miniAppPageService.getById(mkCarousel.getJumpPageId());
|
MiniAppPages miniAppPages = miniAppPageService.getById(mkCarousel.getJumpPageId());
|
||||||
if (miniAppPages != null) {
|
if (miniAppPages != null) {
|
||||||
mkCarousel.setJumpPagePath(miniAppPages.getPath());
|
mkCarousel.setJumpPagePath(miniAppPages.getPath());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user