不适用的访视不返回裁判配置
parent
adaa085e56
commit
4cab822a52
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue