From 533fb93486f75b065bdd5a521c3b1a258fddb559 Mon Sep 17 00:00:00 2001 From: H Vs Date: Tue, 20 Jun 2023 15:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=A2=9E=E9=87=8F=E5=80=BC?= =?UTF-8?q?=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HealthMonitor/HmBloodPressController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressController.cs b/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressController.cs index bd0e4f3..9ad1a5a 100644 --- a/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressController.cs +++ b/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressController.cs @@ -144,9 +144,9 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor // 偏移参数 var avgOffset = 0.25M; - // 增量值 - var systolicInc = systolicAvg.Equals(0M) ? 0:(int)(systolicRefValue - systolicAvg * avgOffset)!; - var diastolicInc = diastolicAvg.Equals(0M) ? 0 : (int)(diastolicRefValue - diastolicAvg * avgOffset)!; + // 增量值=(标定值-平均值)* 0.25 + var systolicInc = systolicAvg.Equals(0M) ? 0: (int)((systolicRefValue - systolicAvg)* avgOffset)!; + var diastolicInc = diastolicAvg.Equals(0M) ? 0 : (int)((diastolicRefValue - diastolicAvg) * avgOffset)!; #endregion