diff --git a/IRaCIS.Core.Application/Service/Visit/PatientService.cs b/IRaCIS.Core.Application/Service/Visit/PatientService.cs index 03f2136f2..9b5a22b53 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -104,6 +104,11 @@ namespace IRaCIS.Application.Services await _hIRHospitalRepository.BatchUpdateNoTrackingAsync(t => t.Id == hirHospitalId, u => new HIRHospital() { IsDefault = true }); + var hospitalInfo = _hIRHospitalRepository.Where(t => t.IsDefault == true).FirstNotNullAsync(); + + //切换了医院,验证获取医院这里也需要实时变更 + await _fusionCache.SetAsync(CacheKeys.Hospital, hospitalInfo, TimeSpan.FromDays(7)); + return ResponseOutput.Ok(); }