思考题排序
This commit is contained in:
@@ -1147,9 +1147,11 @@ public class ClassEntityServiceImpl extends ServiceImpl<ClassEntityDao, ClassEnt
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("courseEntity",courseEntity);
|
||||
MPJLambdaWrapper<CourseCatalogueChapterEntity> chapterWrapper = new MPJLambdaWrapper<>();
|
||||
chapterWrapper.leftJoin(CourseCatalogueEntity.class,CourseCatalogueEntity::getId,CourseCatalogueChapterEntity::getCatalogueId);
|
||||
chapterWrapper.eq(CourseCatalogueChapterEntity::getCourseId,courseEntity.getId());
|
||||
chapterWrapper.ne(CourseCatalogueChapterEntity::getQuestions,"");
|
||||
chapterWrapper.select(CourseCatalogueChapterEntity::getId,CourseCatalogueChapterEntity::getTitle);
|
||||
chapterWrapper.orderByAsc(CourseCatalogueEntity::getSort);
|
||||
chapterWrapper.orderByAsc(CourseCatalogueChapterEntity::getSort);
|
||||
List<Map<String,Object>> chapterList = courseCatalogueChapterDao.selectMaps(chapterWrapper);
|
||||
for (Map<String, Object> m : chapterList) {
|
||||
|
||||
Reference in New Issue
Block a user