Browse Source

调整手动校准remarks处理

datasub12_previous
H Vs 11 months ago
parent
commit
c5d2a4a915
1 changed files with 12 additions and 12 deletions
  1. +12
    -12
      HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs

+ 12
- 12
HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs View File

@@ -151,18 +151,18 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor
// A.没有下推记录
if (lastPush?.Count == 0 || lastPush == null)
{
#region 初始化remarks
// 读数据库,remarks为空就写commandValue,更新缓存
var resFlag = await _serviceIotWebApi.UpdatePersonRemarksAsync(imei, systolicRefValue, diastolicRefValue).ConfigureAwait(false);
if (resFlag)
{
_logger.LogInformation($"更新gps_person remarks和缓存");
}
else
{
_logger.LogInformation($"更新gps_person remarks和缓存失败");
}
#endregion
//#region 初始化remarks
//// 读数据库,remarks为空就写commandValue,更新缓存
//var resFlag = await _serviceIotWebApi.UpdatePersonRemarksAsync(imei, systolicRefValue, diastolicRefValue).ConfigureAwait(false);
//if (resFlag)
//{
// _logger.LogInformation($"更新gps_person remarks和缓存");
//}
//else
//{
// _logger.LogInformation($"更新gps_person remarks和缓存失败");
//}
//#endregion

int count = await _serviceTDengine.GetCount("stb_hm_bloodpress", $"serialno='{imei}' ");
// A.1 没有下推记录,没有测量记录,下推增量值 0


Loading…
Cancel
Save