|
@@ -644,6 +644,11 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
Page<Question> page = new Page<Question>(pageNo, pageSize);
|
|
Page<Question> page = new Page<Question>(pageNo, pageSize);
|
|
LambdaQueryWrapper<Question> queryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<Question> queryWrapper = new LambdaQueryWrapper<>();
|
|
queryWrapper.eq(Question::getRepositoryId, repositoryId);
|
|
queryWrapper.eq(Question::getRepositoryId, repositoryId);
|
|
|
|
+ //练习的题目不包含简答题和组合题
|
|
|
|
+ List<Integer> filterType = new ArrayList<>();
|
|
|
|
+ filterType.add(QuestionType.SIMPLE.getCode());
|
|
|
|
+ filterType.add(QuestionType.COMBINATION.getCode());
|
|
|
|
+ queryWrapper.notIn(Question::getType, filterType);
|
|
|
|
|
|
IPage<Question> pageList = null;
|
|
IPage<Question> pageList = null;
|
|
switch (PracticeMode.getByCode(mode)) {
|
|
switch (PracticeMode.getByCode(mode)) {
|