From c614ee4005db4e2ca918cb743a3c2e24dd131736 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Mon, 28 Jul 2025 15:45:40 +0800 Subject: [PATCH] dd --- 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 93b2c3a..2440814 100644 --- a/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs +++ b/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs @@ -174,8 +174,8 @@ namespace YD_AllHeartRates.Api.Services.Impl await _sportsContext.AddAsync(entity); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -207,8 +207,8 @@ namespace YD_AllHeartRates.Api.Services.Impl _sportsContext.Update(device); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -227,8 +227,8 @@ namespace YD_AllHeartRates.Api.Services.Impl _sportsContext.Device.Remove(device); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -285,8 +285,8 @@ namespace YD_AllHeartRates.Api.Services.Impl await _sportsContext.AddRangeAsync(deviceList); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } }