|
|
@@ -1117,7 +1117,7 @@ namespace HealthMonitor.Service.Biz.db |
|
|
|
|
|
|
|
// 输出新数据集 |
|
|
|
_logger.LogInformation($"{serialNo} 新数据集: " + string.Join(", ", closestToModeData)); |
|
|
|
_logger.LogInformation($"{serialNo} 新数据集的数量: " + closestToModeData.Count); |
|
|
|
_logger.LogInformation($"{serialNo} 新数据集的数量: {closestToModeData.Count},最大值: {closestToModeData.Max()},最小值 {closestToModeData.Min()},原始最大值: {res.Max()},原始最小值 {res.Min()}" ); |
|
|
|
|
|
|
|
var fhrMap = _mgrFhrPhrMapCache.GetHeartRatesMap(); |
|
|
|
var watchConfig = await _deviceCacheMgr.GetGpsDeviceWatchConfigCacheObjectBySerialNoAsync(serialNo, "0067"); |
|
|
@@ -1158,16 +1158,12 @@ namespace HealthMonitor.Service.Biz.db |
|
|
|
var maxValue = closestToModeData.Max(); |
|
|
|
var minValue = closestToModeData.Min(); |
|
|
|
|
|
|
|
if (maxValue >= 60 && maxValue <= 100) |
|
|
|
if ((maxValue >= 60 && maxValue <= 100) && (minValue >= 60 && minValue <= 100)) |
|
|
|
{ |
|
|
|
minValue = 60; |
|
|
|
maxValue = 100; |
|
|
|
} |
|
|
|
|
|
|
|
if (minValue >= 60 && minValue <= 100) |
|
|
|
{ |
|
|
|
minValue = 60; |
|
|
|
} |
|
|
|
|
|
|
|
return new PregnancyCommonHeartRateModel() |
|
|
|
{ |
|
|
|
Timestamp = DateTime.Now, |
|
|
|