修改判断
continuous-integration/drone/push Build is running Details

Test_HIR_Net8
hang 2025-08-21 14:30:29 +08:00
parent 7542c20bcc
commit 01b61f8fb6
1 changed files with 7 additions and 5 deletions

View File

@ -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);
}