修改一版

This commit is contained in:
he
2022-06-08 18:21:07 +08:00
parent 56e8721ce0
commit 787401bdff
2 changed files with 10 additions and 6 deletions
@@ -146,6 +146,9 @@ namespace IRaCIS.Core.Application.Services
ReadingPeriodSetId = readingPeriodSet.Id,
});
//var trialid = await _subjectVisitRepository.Where(x => x.Id == svCommand.Id).Select(x => x.TrialId).FirstOrDefaultAsync();
// 当前访视没有阅片期才添加
if (!await _readModuleRepository.AnyAsync(x => x.SubjectVisitId == svCommand.Id && x.ReadingSetType == ReadingSetType.ImageReading))
{
@@ -159,6 +162,7 @@ namespace IRaCIS.Core.Application.Services
ModuleName = "Global",// 全局阅片
ReadingSetType = ReadingSetType.ImageReading,
ModuleType = ModuleTypeEnum.Global,
TrialId= dbBeforeEntity.TrialId,
});
}
}