修改切换医院bug
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-04-18 10:03:35 +08:00
parent e43dce220c
commit 213cb69332
1 changed files with 5 additions and 0 deletions

View File

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