This commit is contained in:
wangjinlei
2024-05-07 18:19:17 +08:00
parent b4988a3fd4
commit e7909ba934
2 changed files with 9 additions and 20 deletions

View File

@@ -786,7 +786,7 @@ public class BuyOrderServiceImpl extends ServiceImpl<BuyOrderDao, BuyOrder> impl
List<BookEntity> bookByProductId = shopProductBookService.getBookByProductId(buyOrderProduct.getProductId());
goodsResponseVo.setBooks(bookByProductId);
//设置商品对应的课程目录
//设置商品对应的课程
List<Integer> collect = shopProductCourseDao.selectList(new LambdaQueryWrapper<ShopProductCourseEntity>().eq(ShopProductCourseEntity::getProductId, buyOrderProduct.getProductId())).stream().map(ShopProductCourseEntity::getCatalogueId).collect(Collectors.toList());
if(collect.size()>0){
MPJLambdaWrapper<CourseCatalogueEntity> courseCatalogueEntityMPJLambdaWrapper = new MPJLambdaWrapper<>();