修改hospital

Uat_Study
hang 2023-06-28 11:59:23 +08:00
parent c63251b832
commit 4c4905e60b
2 changed files with 18 additions and 5 deletions

View File

@ -35,11 +35,13 @@ namespace IRaCIS.Application.Services
VerifyMsg = _localizer["Hospital_DupName"]
};
if (await _hospitalRepository.AnyAsync(x => x.SiteId == hospitalCommand.SiteId && hospitalCommand.SiteId != null))
var exp1 = new EntityVerifyExp<Hospital>()
{
//---当前Site已经添加到其他Hospital了
throw new BusinessValidationFailedException(_localizer["Hospital_SiteAdded"]);
}
VerifyExp = x => x.SiteId == hospitalCommand.SiteId && hospitalCommand.SiteId != null,
//---已经存在同名的医院,请确认。
VerifyMsg = _localizer["Hospital_SiteAdded"]
};
var hospital = await _hospitalRepository.InsertOrUpdateAsync(hospitalCommand, true, exp);

View File

@ -91,3 +91,14 @@ WHERE
---------------------------
update ClinicalDataTrialSet set IsApply=1
--
delete ReadingClinicalData
--88020000-3E02-0016-9DA6-08DB6705F7C1
--select *
from ReadingClinicalData
INNER JOIN ReadModule on ReadingClinicalData.ReadingId = ReadModule.Id
where not EXISTS (select Id from TrialClinicalDataSetCriterion where ReadModule.TrialReadingCriterionId =TrialClinicalDataSetCriterion.TrialReadingCriterionId)