bug
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user