|
@@ -62,7 +62,7 @@ public class AppHomeServiceImpl implements IAppHomeService {
|
|
.eq(AppCourses::getPriceType, 1).last("LIMIT 3"));
|
|
.eq(AppCourses::getPriceType, 1).last("LIMIT 3"));
|
|
|
|
|
|
// 合并课程信息
|
|
// 合并课程信息
|
|
- List<CoureseVO> courseVO = new ArrayList<>();
|
|
|
|
|
|
+ List<CourseVO> courseVO = new ArrayList<>();
|
|
courseVO.addAll(convertToCoureseVOList(appCoursesFine));
|
|
courseVO.addAll(convertToCoureseVOList(appCoursesFine));
|
|
courseVO.addAll(convertToCoureseVOList(appCoursesFree));
|
|
courseVO.addAll(convertToCoureseVOList(appCoursesFree));
|
|
|
|
|
|
@@ -131,11 +131,11 @@ public class AppHomeServiceImpl implements IAppHomeService {
|
|
* @Description 合并课程信息
|
|
* @Description 合并课程信息
|
|
* @Date 9:14 2025/7/4
|
|
* @Date 9:14 2025/7/4
|
|
* @Param appCoureseList {@link List<AppCourses>}
|
|
* @Param appCoureseList {@link List<AppCourses>}
|
|
- * @return List<CoureseVO> {@link List<CoureseVO>}
|
|
|
|
|
|
+ * @return List<CoureseVO> {@link List< CourseVO >}
|
|
**/
|
|
**/
|
|
- private List<CoureseVO> convertToCoureseVOList(List<AppCourses> appCoureseList) {
|
|
|
|
|
|
+ private List<CourseVO> convertToCoureseVOList(List<AppCourses> appCoureseList) {
|
|
return appCoureseList.stream()
|
|
return appCoureseList.stream()
|
|
- .map(courses -> new CoureseVO()
|
|
|
|
|
|
+ .map(courses -> new CourseVO()
|
|
.setId(courses.getId()).setCover(courses.getCover())
|
|
.setId(courses.getId()).setCover(courses.getCover())
|
|
.setPriceType(courses.getPriceType())
|
|
.setPriceType(courses.getPriceType())
|
|
.setSellingPrice(courses.getSellingPrice()))
|
|
.setSellingPrice(courses.getSellingPrice()))
|