修改判断
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
7542c20bcc
commit
01b61f8fb6
|
|
@ -139,7 +139,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
var exp = new EntityVerifyExp<HIRHospital>()
|
||||
{
|
||||
VerifyExp = h => h.IsDefault.Equals(addOrEditHIRHospital.IsDefault),
|
||||
VerifyExp = h => h.IsDefault.Equals(addOrEditHIRHospital.IsDefault) && addOrEditHIRHospital.IsDefault = true,
|
||||
|
||||
//"默认医院只允许一个"
|
||||
VerifyMsg = _localizer["Patient_OnlyOneDefaultHospital"]
|
||||
|
|
@ -827,8 +827,11 @@ namespace IRaCIS.Application.Services
|
|||
foreach (var item in incommand.SCPstudyIdList)
|
||||
{
|
||||
foreach (var hospitalGroupId in incommand.HospitalGroupIdList)
|
||||
{
|
||||
if (!_SCPStudyHospitalGroupRepository.Any(t => t.SCPStudyId == item && hospitalGroupId == t.HospitalGroupId))
|
||||
{
|
||||
await _SCPStudyHospitalGroupRepository.AddAsync(new SCPStudyHospitalGroup() { SCPStudyId = item, HospitalGroupId = hospitalGroupId });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -844,7 +847,6 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
await _SCPStudyHospitalGroupRepository.DeleteFromQueryAsync(t => t.HospitalGroupId == hospitalGroupId && t.SCPStudyId == item);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue