裁判计算排除访视修改
parent
4ccf836275
commit
cbd1457699
|
|
@ -1189,17 +1189,17 @@ namespace IRaCIS.Core.Application.Service
|
||||||
}
|
}
|
||||||
|
|
||||||
var questionIds = answerList.Select(x => x.QuestionId).Distinct().ToList();
|
var questionIds = answerList.Select(x => x.QuestionId).Distinct().ToList();
|
||||||
var questions = await _readingQuestionTrialRepository.Where(x => questionIds.Contains(x.Id)&&x.LimitShow == LimitShow.ExcludeSomeVisits).Select(x => new
|
//var questions = await _readingQuestionTrialRepository.Where(x => questionIds.Contains(x.Id)&&x.LimitShow == LimitShow.ExcludeSomeVisits).Select(x => new
|
||||||
{
|
//{
|
||||||
x.Id,
|
// x.Id,
|
||||||
x.ExcludeShowVisitList,
|
// x.ExcludeShowVisitList,
|
||||||
}).ToListAsync();
|
//}).ToListAsync();
|
||||||
var excludedQuestionIds = answerList
|
//var excludedQuestionIds = answerList
|
||||||
.Where(x => questions.FirstOrDefault(question => question.Id == x.QuestionId)?.ExcludeShowVisitList.Contains(x.VisitTaskNum) == true)
|
// .Where(x => questions.FirstOrDefault(question => question.Id == x.QuestionId)?.ExcludeShowVisitList.Contains(x.VisitTaskNum) == true)
|
||||||
.Select(x => x.QuestionId)
|
// .Select(x => x.QuestionId)
|
||||||
.Distinct()
|
// .Distinct()
|
||||||
.ToList();
|
// .ToList();
|
||||||
answerList.RemoveAll(x => excludedQuestionIds.Contains(x.QuestionId));
|
//answerList.RemoveAll(x => excludedQuestionIds.Contains(x.QuestionId));
|
||||||
|
|
||||||
if (judgeRule != JudgeRule.Difference || answerList.Count == 0)
|
if (judgeRule != JudgeRule.Difference || answerList.Count == 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue