From e86bb7bb833c40ab7eaf5e35c55d694d6c2305b3 Mon Sep 17 00:00:00 2001 From: H Vs Date: Mon, 27 Nov 2023 15:34:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HmBloodPressConfigManualCalibrationController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs b/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs index bcc03e1..0a658da 100644 --- a/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs +++ b/HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs @@ -116,6 +116,7 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor { //return await IotSetBloodPressCalibrationConfigResponseAsync(model.Imei, 0, 0, 0, 0).ConfigureAwait(false); var statNow = DateTime.Now; + _logger.LogInformation($"{imei} 重置设备"); return await IotSetBloodPressCalibrationConfigResponseAsync(imei, 0, 0, 0, 0, 0, 0, 0, 0, statNow, statNow).ConfigureAwait(false); //return ApiResponse.Success(new @@ -134,6 +135,7 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor if (model.IsPushRefOnly) { var statNow = DateTime.Now; + _logger.LogInformation($"{imei}:只下发标定值,不计算增量值,保存数据库(修改个人信息)"); return await IotSetBloodPressCalibrationConfigResponseAsync(imei, model.ManualSystolicRefValue, model.ManualDiastolicRefValue, 0, 0, 0, 0, 0, 0, statNow, statNow).ConfigureAwait(false); } @@ -195,7 +197,9 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor // 累计增量 systolicInc = currentSystolicInc + lastPushSystolicInc; diastolicInc = currentDiastolicInc + lastPushDiastolicInc; - + _logger.LogInformation($"{imei}--{nameof(Put)}--计算增量值" + + $"\n systolicInc:{systolicInc }-- currentSystolicInc:{currentSystolicInc} -- lastPushSystolicInc:{lastPushSystolicInc}" + + $"\n diastolicInc:{diastolicInc} --currentDiastolicInc:{currentDiastolicInc} -- lastPushDiastolicInc:{lastPushDiastolicInc}"); return await IotSetBloodPressCalibrationConfigResponseAsync(imei, systolicRefValue, diastolicRefValue, systolicInc, diastolicInc, systolicAvg, diastolicAvg, systolicAvgOffset, diastolicAvgOffset, startTime, endTime).ConfigureAwait(false);