修改传递参数
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
hang 2025-11-06 15:25:52 +08:00
parent 668af5ee0b
commit 5059d66aa1
1 changed files with 3 additions and 1 deletions

View File

@ -340,7 +340,9 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
[FromServices] IRepository<Trial> _trialRepository) [FromServices] IRepository<Trial> _trialRepository)
{ {
//每次查询必须是单标准的 //每次查询必须是单标准的
var criterion = await _readingQuestionCriterionTrialRepository.Where(t => t.CriterionType == inQuery.CriterionType) var criterion = await _readingQuestionCriterionTrialRepository
.WhereIf(inQuery.TrialReadingCriterionId != null, t => t.Id == inQuery.TrialReadingCriterionId)
.WhereIf(inQuery.CriterionType != null, t => t.CriterionType == inQuery.CriterionType)
.Select(t => new { t.Id, t.CriterionType, t.CriterionGroup, t.IsGlobalReading, t.IsArbitrationReading, t.IsOncologyReading, t.CriterionName, t.ArbitrationRule }).FirstNotNullAsync(); .Select(t => new { t.Id, t.CriterionType, t.CriterionGroup, t.IsGlobalReading, t.IsArbitrationReading, t.IsOncologyReading, t.CriterionName, t.ArbitrationRule }).FirstNotNullAsync();
var arbitrationRule = criterion.ArbitrationRule; var arbitrationRule = criterion.ArbitrationRule;