空指针

This commit is contained in:
2026-01-28 17:07:50 +08:00
parent 66d3c8ad0b
commit fc8599d36c

View File

@@ -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;
} }