切换医院,设置缓存bug 修改
continuous-integration/drone/push Build is running Details

Test_HIR_Net8
hang 2025-08-20 13:52:40 +08:00
parent 893effcefe
commit df6b89b3be
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ namespace IRaCIS.Application.Services
await _hIRHospitalRepository.BatchUpdateNoTrackingAsync(t => t.Id == hirHospitalId, u => new HIRHospital() { IsDefault = true }); await _hIRHospitalRepository.BatchUpdateNoTrackingAsync(t => t.Id == hirHospitalId, u => new HIRHospital() { IsDefault = true });
var hospitalInfo = _hIRHospitalRepository.Where(t => t.IsDefault == true).FirstNotNullAsync(); var hospitalInfo = await _hIRHospitalRepository.Where(t => t.IsDefault == true).FirstNotNullAsync();
//切换了医院,验证获取医院这里也需要实时变更 //切换了医院,验证获取医院这里也需要实时变更
await _fusionCache.SetAsync(CacheKeys.Hospital, hospitalInfo, TimeSpan.FromDays(7)); await _fusionCache.SetAsync(CacheKeys.Hospital, hospitalInfo, TimeSpan.FromDays(7));