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

Uat_IRC_Net10
he 2026-08-18 10:25:01 +08:00
parent 35e6a47f2d
commit b121db89f0
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 IsGetJudge { get; set; } = false;
}

View File

@ -780,6 +780,7 @@ namespace IRaCIS.Core.Application.Service
if (inDto.TrialReadingCriterionId != null)
{
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")
.Select(x => new CalculateRelationDto()
{