|
@@ -2517,6 +2517,13 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
List<FsCourseQuestionBank> fsCourseQuestionBanks = courseQuestionBankMapper.selectFsCourseQuestionBankByIdVO(courseVideo.getQuestionBankId().split(","));
|
|
|
fsUserCourseVideoQVO.setQuestionBankList(fsCourseQuestionBanks);
|
|
|
}
|
|
|
+
|
|
|
+ //返回课程关联的拍商品
|
|
|
+ if(courseVideo.getIsProduct() != null && courseVideo.getIsProduct() == 1 && courseVideo.getProductId() != null){
|
|
|
+ FsCourseProduct courseProduct = courseProductMapper.selectFsCourseProductById(courseVideo.getProductId());
|
|
|
+ List<FsCourseProduct> courseProducts = Arrays.asList(courseProduct);
|
|
|
+ fsUserCourseVideoQVO.setCourseProducts(courseProducts);
|
|
|
+ }
|
|
|
return fsUserCourseVideoQVO;
|
|
|
}
|
|
|
|