修改hospital
parent
c63251b832
commit
4c4905e60b
|
|
@ -35,11 +35,13 @@ namespace IRaCIS.Application.Services
|
||||||
VerifyMsg = _localizer["Hospital_DupName"]
|
VerifyMsg = _localizer["Hospital_DupName"]
|
||||||
};
|
};
|
||||||
|
|
||||||
if (await _hospitalRepository.AnyAsync(x => x.SiteId == hospitalCommand.SiteId && hospitalCommand.SiteId != null))
|
var exp1 = new EntityVerifyExp<Hospital>()
|
||||||
{
|
{
|
||||||
//---当前Site已经添加到其他Hospital了
|
VerifyExp = x => x.SiteId == hospitalCommand.SiteId && hospitalCommand.SiteId != null,
|
||||||
throw new BusinessValidationFailedException(_localizer["Hospital_SiteAdded"]);
|
//---已经存在同名的医院,请确认。
|
||||||
}
|
VerifyMsg = _localizer["Hospital_SiteAdded"]
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
var hospital = await _hospitalRepository.InsertOrUpdateAsync(hospitalCommand, true, exp);
|
var hospital = await _hospitalRepository.InsertOrUpdateAsync(hospitalCommand, true, exp);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,3 +91,14 @@ WHERE
|
||||||
|
|
||||||
---------------------------维护临床数据是否应用 之前默认都是应用 现在添加字段 把状态都改为应用
|
---------------------------维护临床数据是否应用 之前默认都是应用 现在添加字段 把状态都改为应用
|
||||||
update ClinicalDataTrialSet set IsApply=1
|
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)
|
||||||
Loading…
Reference in New Issue