From faa84b72290434f8f018aeee525eb813261e47ce Mon Sep 17 00:00:00 2001 From: H Vs Date: Thu, 16 May 2024 11:13:07 +0800 Subject: [PATCH] =?UTF-8?q?(=E6=A0=87=E5=AE=9A=E5=80=BC-=E5=B9=B3=E5=9D=87?= =?UTF-8?q?=E5=80=BC)=E5=B0=91=E4=BA=8E4=E5=90=8E=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E8=BF=9B=E8=A1=8C=E5=A2=9E=E9=87=8F=E5=80=BC=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HmBloodPressConfigManualCalibrationController.cs | 4 ++-- HealthMonitor.WebApi/Worker.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs b/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs index c77f0e8..340ac62 100644 --- a/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs +++ b/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs @@ -220,9 +220,9 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor return await IotSetBloodPressCalibrationConfigResponseAsync(imei, systolicRefValue, diastolicRefValue, 0, 0, 0, 0, 0, 0, statNow, statNow).ConfigureAwait(false); } // 除最大值和最小值后的平均值与标定值差值少于4后(当天计算出该结果则也不产生增量调整),就不再进行增量值调整了。 - if (systolicAvg-systolicRefValue < 4) + if (systolicRefValue-systolicAvg < 4) { - _logger.LogInformation($"{imei} 除最大值和最小值后的平均值:{systolicAvg}与标定值:{systolicRefValue}差值少于4后,不再进行增量值调整"); + _logger.LogInformation($"{imei} 除最大值和最小值后的平均值:{systolicAvg}与标定值:{systolicRefValue}差值(标定值-平均值)少于4后,不再进行增量值调整"); return ApiResponse.Fail(502, $"平均值与标定值差值少于4,不调整增量值"); } diff --git a/HealthMonitor.WebApi/Worker.cs b/HealthMonitor.WebApi/Worker.cs index 0911adc..7926e9e 100644 --- a/HealthMonitor.WebApi/Worker.cs +++ b/HealthMonitor.WebApi/Worker.cs @@ -333,9 +333,9 @@ namespace HealthMonitor.WebApi break; } // 除最大值和最小值后的平均值与标定值差值少于4后(当天计算出该结果则也不产生增量调整),就不再进行增量值调整了。 - if (systolicAvg-systolicRefValue < 4) + if (systolicRefValue - systolicAvg < 4) { - _logger.LogInformation($"{imeiDel}除最大值和最小值后的平均值:{systolicAvg}与标定值:{systolicRefValue}差值少于4后,不再进行增量值调整"); + _logger.LogInformation($"{imeiDel}除最大值和最小值后的平均值:{systolicAvg}与标定值:{systolicRefValue}的差值(标定值-平均值)少于4后,不再进行增量值调整"); break; }