Uat_Study
he 2022-08-11 09:20:14 +08:00
parent d4388ea487
commit f5a249cf28
2 changed files with 6 additions and 2 deletions

View File

@ -106,7 +106,11 @@ namespace IRaCIS.Application.Services
[HttpPost]
public async Task<bool> VerifyeCriterionNeedSynchronize(VerifyeCriterionNeedSynchronizeInDto inDto)
{
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == inDto.TrialId&&x.IsConfirm).FirstNotNullAsync();
var trialCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.TrialId == inDto.TrialId&&x.IsConfirm).FirstOrDefaultAsync();
if (trialCriterion == null)
{
return false;
}
if (trialCriterion.ReadingQuestionCriterionSystemId != null)
{
var systemCriterion = await _readingQuestionCriterionSystemRepository.Where(x => x.Id == trialCriterion.ReadingQuestionCriterionSystemId).FirstNotNullAsync();

View File

@ -241,7 +241,7 @@ namespace IRaCIS.Core.Application
// 验证并同步
await iReadingQuestionService.VerifyeCriterionNeedSynchronize(new VerifyeCriterionNeedSynchronizeInDto()
{
TrialCriterionId = trialCriterion.Id
TrialId = inDto.TrialId
});
};