Uat_Study
parent
e56df5384e
commit
dab955b151
|
@ -77,6 +77,16 @@ namespace IRaCIS.Application.Services
|
||||||
.WhereIf(indto.Id != null, x => x.Id != indto.Id)
|
.WhereIf(indto.Id != null, x => x.Id != indto.Id)
|
||||||
.Where(x => x.ClinicalDataTrialSetId == indto.ClinicalDataTrialSetId && x.ReadingId == indto.ReadingId);
|
.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())
|
if (await existsQuery.AnyAsync())
|
||||||
{
|
{
|
||||||
return ResponseOutput.NotOk("存在同类型的临床数据");
|
return ResponseOutput.NotOk("存在同类型的临床数据");
|
||||||
|
|
Loading…
Reference in New Issue