Browse Source

增加日志

datasub12_previous
H Vs 1 year ago
parent
commit
7f44f0d35d
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      HealthMonitor.Service/Resolver/BloodpressResolver.cs
  2. +1
    -0
      HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs

+ 1
- 0
HealthMonitor.Service/Resolver/BloodpressResolver.cs View File

@@ -161,6 +161,7 @@ namespace HealthMonitor.Service.Resolver
_logger.LogInformation($"Person Remarks 值:{person?.Person.Remarks}");
if (string.IsNullOrWhiteSpace(person?.Person.Remarks))
{
_logger.LogInformation($"{bp.Serialno},设备解绑后绑定,首次手工测量了血压值,下发年龄标定值和增量值(测量值=平均值计算得出的)");
#region 初始化计算增量值(个人血压信息)
// 测量值当作平均值
systolicAvg = bp.SystolicValue;


+ 1
- 0
HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs View File

@@ -200,6 +200,7 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor
_logger.LogInformation($"{imei}--{nameof(Put)}--计算增量值" +
$"\n systolicInc:{systolicInc }-- currentSystolicInc:{currentSystolicInc} -- lastPushSystolicInc:{lastPushSystolicInc}" +
$"\n diastolicInc:{diastolicInc} --currentDiastolicInc:{currentDiastolicInc} -- lastPushDiastolicInc:{lastPushDiastolicInc}");
_logger.LogInformation($"{imei},手工校准,发给设备的绝对增量值=(上次绝对增量值+新数据的增量值)");
return await IotSetBloodPressCalibrationConfigResponseAsync(imei, systolicRefValue, diastolicRefValue, systolicInc, diastolicInc, systolicAvg, diastolicAvg, systolicAvgOffset, diastolicAvgOffset, startTime, endTime).ConfigureAwait(false);




Loading…
Cancel
Save