Uat_Study
he 2023-01-12 12:04:03 +08:00
parent e56df5384e
commit dab955b151
1 changed files with 10 additions and 0 deletions

View File

@ -77,6 +77,16 @@ namespace IRaCIS.Application.Services
.WhereIf(indto.Id != null, x => x.Id != indto.Id)
.Where(x => x.ClinicalDataTrialSetId == indto.ClinicalDataTrialSetId && x.ReadingId == indto.ReadingId);
if (await _subjectVisitRepository.AnyAsync(x => x.Id == indto.ReadingId))
{
indto.IsVisit = true;
}
else
{
indto.IsVisit = false;
}
if (await existsQuery.AnyAsync())
{
return ResponseOutput.NotOk("存在同类型的临床数据");