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