切换医院,设置缓存bug 修改
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
893effcefe
commit
df6b89b3be
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue