@@ -161,6 +161,7 @@ namespace HealthMonitor.Service.Resolver | |||||
_logger.LogInformation($"Person Remarks 值:{person?.Person.Remarks}"); | _logger.LogInformation($"Person Remarks 值:{person?.Person.Remarks}"); | ||||
if (string.IsNullOrWhiteSpace(person?.Person.Remarks)) | if (string.IsNullOrWhiteSpace(person?.Person.Remarks)) | ||||
{ | { | ||||
_logger.LogInformation($"{bp.Serialno},设备解绑后绑定,首次手工测量了血压值,下发年龄标定值和增量值(测量值=平均值计算得出的)"); | |||||
#region 初始化计算增量值(个人血压信息) | #region 初始化计算增量值(个人血压信息) | ||||
// 测量值当作平均值 | // 测量值当作平均值 | ||||
systolicAvg = bp.SystolicValue; | systolicAvg = bp.SystolicValue; | ||||
@@ -200,6 +200,7 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor | |||||
_logger.LogInformation($"{imei}--{nameof(Put)}--计算增量值" + | _logger.LogInformation($"{imei}--{nameof(Put)}--计算增量值" + | ||||
$"\n systolicInc:{systolicInc }-- currentSystolicInc:{currentSystolicInc} -- lastPushSystolicInc:{lastPushSystolicInc}" + | $"\n systolicInc:{systolicInc }-- currentSystolicInc:{currentSystolicInc} -- lastPushSystolicInc:{lastPushSystolicInc}" + | ||||
$"\n diastolicInc:{diastolicInc} --currentDiastolicInc:{currentDiastolicInc} -- lastPushDiastolicInc:{lastPushDiastolicInc}"); | $"\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); | return await IotSetBloodPressCalibrationConfigResponseAsync(imei, systolicRefValue, diastolicRefValue, systolicInc, diastolicInc, systolicAvg, diastolicAvg, systolicAvgOffset, diastolicAvgOffset, startTime, endTime).ConfigureAwait(false); | ||||