From de37657cc87c9a816fc6fa6bca3a8f1a3655e641 Mon Sep 17 00:00:00 2001 From: H Vs Date: Fri, 9 Aug 2024 17:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=9C=80=E5=A4=A7=E5=80=BC?= =?UTF-8?q?=E4=B8=8E=E6=9C=80=E5=B0=8F=E5=80=BC=E5=9C=A860~100=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E5=86=85=EF=BC=8C=E9=83=BD=E6=8C=89=E4=B8=AA=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E5=80=BC=E4=B8=8B=E5=8F=91=E9=AB=98=E9=A2=91=E9=98=88?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HealthMonitor.Service/Biz/db/TDengineService.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/HealthMonitor.Service/Biz/db/TDengineService.cs b/HealthMonitor.Service/Biz/db/TDengineService.cs index da6d2fa..4d60f3a 100644 --- a/HealthMonitor.Service/Biz/db/TDengineService.cs +++ b/HealthMonitor.Service/Biz/db/TDengineService.cs @@ -1117,7 +1117,7 @@ namespace HealthMonitor.Service.Biz.db // 输出新数据集 _logger.LogInformation($"{serialNo} 新数据集: " + string.Join(", ", closestToModeData)); - _logger.LogInformation($"{serialNo} 新数据集的数量: " + closestToModeData.Count); + _logger.LogInformation($"{serialNo} 新数据集的数量: {closestToModeData.Count},最大值: {closestToModeData.Max()},最小值 {closestToModeData.Min()},原始最大值: {res.Max()},原始最小值 {res.Min()}" ); var fhrMap = _mgrFhrPhrMapCache.GetHeartRatesMap(); var watchConfig = await _deviceCacheMgr.GetGpsDeviceWatchConfigCacheObjectBySerialNoAsync(serialNo, "0067"); @@ -1158,16 +1158,12 @@ namespace HealthMonitor.Service.Biz.db var maxValue = closestToModeData.Max(); var minValue = closestToModeData.Min(); - if (maxValue >= 60 && maxValue <= 100) + if ((maxValue >= 60 && maxValue <= 100) && (minValue >= 60 && minValue <= 100)) { + minValue = 60; maxValue = 100; } - if (minValue >= 60 && minValue <= 100) - { - minValue = 60; - } - return new PregnancyCommonHeartRateModel() { Timestamp = DateTime.Now,