Bladeren bron

调整手动校准remarks处理

datasub12_previous
H Vs 1 jaar geleden
bovenliggende
commit
c5d2a4a915
1 gewijzigde bestanden met toevoegingen van 12 en 12 verwijderingen
  1. +12
    -12
      HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs

+ 12
- 12
HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressConfigManualCalibrationController.cs Bestand weergeven

@@ -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


Laden…
Annuleren
Opslaan