获取裁判的计算关系
continuous-integration/drone/push Build is passing Details

Test_IRC_Net10
he 2026-08-18 10:25:01 +08:00
parent 13a942c6c5
commit 73c86666b4
2 changed files with 3 additions and 0 deletions

View File

@ -1729,6 +1729,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public bool IsGetAll { get; set; } = false; public bool IsGetAll { get; set; } = false;
public bool IsGetJudge { get; set; } = false;
} }

View File

@ -780,6 +780,7 @@ namespace IRaCIS.Core.Application.Service
if (inDto.TrialReadingCriterionId != null) if (inDto.TrialReadingCriterionId != null)
{ {
return await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId) return await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
.WhereIf(inDto.IsGetJudge,x=>x.IsJudgeQuestion)
.WhereIf(!inDto.IsGetAll, x => x.DataSource == DataSources.Automatic && x.Type == "number") .WhereIf(!inDto.IsGetAll, x => x.DataSource == DataSources.Automatic && x.Type == "number")
.Select(x => new CalculateRelationDto() .Select(x => new CalculateRelationDto()
{ {