|
@@ -596,7 +596,7 @@ namespace Hotline.Application.Exam.Service.Practices
|
|
var questionRepository = new ExamRepository<ExamQuestion>(_uow, _dataPermissionFilterBuilder, _serviceProvider);
|
|
var questionRepository = new ExamRepository<ExamQuestion>(_uow, _dataPermissionFilterBuilder, _serviceProvider);
|
|
|
|
|
|
var questionTagTable = questionTagRepostiory.Queryable();
|
|
var questionTagTable = questionTagRepostiory.Queryable();
|
|
- var questionTable = questionRepository.Queryable();
|
|
|
|
|
|
+ var questionTable = questionRepository.Queryable().Where(x=>!(x.QuestionType == Share.Enums.Exams.EQuestionType.Single && x.QuestionType == Share.Enums.Exams.EQuestionType.Multi || x.QuestionType == Share.Enums.Exams.EQuestionType.Judge));
|
|
|
|
|
|
// 按照标签获取试题,至少取一道
|
|
// 按照标签获取试题,至少取一道
|
|
if (actionRequest.Count < actionRequest.PracticeTagDtos.Count)
|
|
if (actionRequest.Count < actionRequest.PracticeTagDtos.Count)
|