修改警告

This commit is contained in:
he
2023-12-05 11:03:00 +08:00
parent a8e0c1691d
commit 8cc9cb8caf
15 changed files with 125 additions and 113 deletions
@@ -342,7 +342,7 @@ namespace IRaCIS.Core.Application.Service.RC
}
}
var systemCriterion = await _readingQuestionCriterionSystemRepository.Where(x => x.Id == inDto.Id).AsNoTracking().FirstOrDefaultAsync();
var systemCriterion = await _readingQuestionCriterionSystemRepository.Where(x => x.Id == inDto.Id).AsNoTracking().FirstNotNullAsync();
var confirmTime = systemCriterion.ConfirmTime;
@@ -470,7 +470,7 @@ namespace IRaCIS.Core.Application.Service.RC
public async Task<IResponseOutput> SetTrialJudgyInfo(SetTrialJudgyInfoInDto inDto)
{
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == inDto.TrialId && x.Id == inDto.TrialReadingCriterionId).FirstOrDefaultAsync();
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == inDto.TrialId && x.Id == inDto.TrialReadingCriterionId).FirstNotNullAsync();
var judgeCount = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == trialCriterion.Id && x.IsJudgeQuestion)
.WhereIf(trialCriterion.FormType == FormType.SinglePage, x => x.ReadingCriterionPageId == null)
@@ -460,7 +460,11 @@ namespace IRaCIS.Application.Services
}
relation.CalculateQuestionList = calculateInfoList;
if (relation != null)
{
relation.CalculateQuestionList = calculateInfoList;
}
this.VerifyCalculateRelation(relationList, indto.Id.Value, indto.Id.Value);
}
@@ -731,7 +735,11 @@ namespace IRaCIS.Application.Services
}
relation.CalculateQuestionList = calculateInfoList;
if (relation != null)
{
relation.CalculateQuestionList = calculateInfoList;
}
this.VerifyCalculateRelation(relationList, indto.Id.Value, indto.Id.Value);
}