From 3db004ef8d2265f70760e4156027686a64751b83 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Mon, 28 Jul 2025 16:01:17 +0800 Subject: [PATCH] ddd --- YD_AllHeartRates.Api/Services/Impl/DeviceService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs b/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs index 2440814..c4f4ace 100644 --- a/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs +++ b/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs @@ -174,7 +174,7 @@ namespace YD_AllHeartRates.Api.Services.Impl await _sportsContext.AddAsync(entity); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + //_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -207,7 +207,7 @@ namespace YD_AllHeartRates.Api.Services.Impl _sportsContext.Update(device); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + //_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -227,7 +227,7 @@ namespace YD_AllHeartRates.Api.Services.Impl _sportsContext.Device.Remove(device); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + //_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -285,7 +285,7 @@ namespace YD_AllHeartRates.Api.Services.Impl await _sportsContext.AddRangeAsync(deviceList); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + //_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; }