This commit is contained in:
wangjinlei
2024-04-19 11:24:12 +08:00
parent 6eecf2fe09
commit f3d36da4f9
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ public class CourseCatalogueChapterServiceImpl extends ServiceImpl<CourseCatalog
@Override
public List<CourseCatalogueChapterEntity> getCourseCatalogueChapterList(int id) {
LambdaQueryWrapper<CourseCatalogueChapterEntity> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(CourseCatalogueChapterEntity::getCourseId,id);
wrapper.eq(CourseCatalogueChapterEntity::getCatalogueId,id);
wrapper.orderByAsc(CourseCatalogueChapterEntity::getSort);
List<CourseCatalogueChapterEntity> list = this.list(wrapper);
return list;

View File

@@ -79,7 +79,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
MPJLambdaWrapper<CourseEntity> wrapper = new MPJLambdaWrapper<>();
wrapper.selectAll(CourseEntity.class);
wrapper.leftJoin(CourseToMarketEntity.class,CourseToMarketEntity::getCourseId,CourseEntity::getId);
wrapper.eq(CourseToMarketEntity::getId,param.getId());
wrapper.eq(CourseToMarketEntity::getMarketId,param.getId());
Page<CourseEntity> courseEntityPage = this.getBaseMapper().selectJoinPage(new Page<>(param.getPage(), param.getLimit()), CourseEntity.class, wrapper);
return courseEntityPage;
}