不适用的访视不返回裁判配置

Uat_IRC_Net10
he 2026-08-18 11:27:14 +08:00
parent adaa085e56
commit 4cab822a52
1 changed files with 4 additions and 1 deletions

View File

@ -51,8 +51,11 @@ namespace IRaCIS.Core.Application.Service
public async Task<List<TrialQuestionVisitJudgeRuleItemDto>> GetTrialQuestionVisitJudgeRule(GetTrialQuestionVisitJudgeRuleInDto inDto)
{
var questionList = await _readingQuestionTrialRepository
.Where(x=>!x.ExcludeShowVisitList.Contains(inDto.VisitNum))
.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId && x.IsJudgeQuestion)
.Where(x => x.LimitShow == LimitShow.AllShow
|| (x.LimitShow == LimitShow.BaseLineShow && inDto.VisitNum == 0)
|| (x.LimitShow == LimitShow.FollowShow && inDto.VisitNum != 0)
|| (x.LimitShow == LimitShow.ExcludeSomeVisits && !x.ExcludeShowVisitList.Contains(inDto.VisitNum)))
.WhereIf(inDto.ReadingQuestionId != null, x => x.Id == inDto.ReadingQuestionId)
.OrderBy(x => x.ShowOrder)
.Select(x => new TrialQuestionVisitJudgeRuleItemDto