From 5509ecc37566290a3597ec3c132009eb4c234b74 Mon Sep 17 00:00:00 2001 From: H Vs Date: Fri, 31 May 2024 10:01:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=B7=A5=E8=B0=83=E6=95=B4=EF=BC=8C?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=B9=B3=E5=9D=87=E5=80=BC=E4=B8=8E=E6=A0=87?= =?UTF-8?q?=E5=AE=9A=E5=80=BC=E5=B7=AE=E5=80=BC=E5=B0=91=E4=BA=8E4?= =?UTF-8?q?=E4=B8=8D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...dPressConfigManualCalibrationController.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs b/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs index cfceb97..0535a23 100644 --- a/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs +++ b/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs @@ -220,17 +220,17 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor return await IotSetBloodPressCalibrationConfigResponseAsync(imei, systolicRefValue, diastolicRefValue, 0, 0, 0, 0, 0, 0, statNow, statNow).ConfigureAwait(false); } // 除最大值和最小值后的平均值与标定值差值少于4后(当天计算出该结果则也不产生增量调整),就不再进行增量值调整了。 - if (systolicRefValue-systolicAvg < 4) - { - _logger.LogInformation($"systolic 收缩压 {imei} 除最大值和最小值后的平均值:{systolicAvg}与标定值:{systolicRefValue}差值(标定值-平均值)少于4后,不再进行增量值调整"); - return ApiResponse.Fail(502, $"平均值与标定值差值少于4,不调整增量值"); - } + //if (systolicRefValue-systolicAvg < 4) + //{ + // _logger.LogInformation($"systolic 收缩压 {imei} 除最大值和最小值后的平均值:{systolicAvg}与标定值:{systolicRefValue}差值(标定值-平均值)少于4后,不再进行增量值调整"); + // return ApiResponse.Fail(502, $"平均值与标定值差值少于4,不调整增量值"); + //} - if (diastolicRefValue - diastolicAvg < 4) - { - _logger.LogInformation($"diastolic 舒张压 {imei} 除最大值和最小值后的平均值:{diastolicAvg}与标定值:{diastolicRefValue}差值(标定值-平均值)少于4后,不再进行增量值调整"); - return ApiResponse.Fail(502, $"平均值与标定值差值少于4,不调整增量值"); - } + //if (diastolicRefValue - diastolicAvg < 4) + //{ + // _logger.LogInformation($"diastolic 舒张压 {imei} 除最大值和最小值后的平均值:{diastolicAvg}与标定值:{diastolicRefValue}差值(标定值-平均值)少于4后,不再进行增量值调整"); + // return ApiResponse.Fail(502, $"平均值与标定值差值少于4,不调整增量值"); + //} // 增量值=(标定值-平均值)* 0.25 var currentSystolicInc = (int)((systolicRefValue - systolicAvg) * systolicAvgOffset)!;