|
|
@@ -160,7 +160,7 @@ namespace HealthMonitor.Service.Resolver |
|
|
|
if (phrFreqstatus == null) |
|
|
|
{ |
|
|
|
/// 设置高频状态 |
|
|
|
_logger.LogInformation($"进入高频心率启动状态 timeDiffInSeconds {timeDiffInSeconds},highFreqSampleInterval:{highFreqSampleInterval}"); |
|
|
|
_logger.LogInformation($"{heartRate.Serialno} 进入高频心率启动状态 timeDiffInSeconds {timeDiffInSeconds},highFreqSampleInterval:{highFreqSampleInterval}"); |
|
|
|
// 设置高频状态 |
|
|
|
var freqFirstPhr = phr.OrderByDescending(i => i.Timestamp).First(); |
|
|
|
await _deviceCacheMgr.SetPregnancyHeartRateFreqStatusAsync(heartRate.Serialno, freqFirstPhr); |
|
|
@@ -232,7 +232,7 @@ namespace HealthMonitor.Service.Resolver |
|
|
|
await _deviceCacheMgr.DelPregnancyHeartRateFreqStatusAsync(heartRate.Serialno); |
|
|
|
|
|
|
|
/// 设置高频状态 |
|
|
|
_logger.LogInformation($"结束高频心率状态 timeDiffInSeconds {timeDiffInSeconds},highFreqSampleInterval:{highFreqSampleInterval}"); |
|
|
|
_logger.LogInformation($"{heartRate.Serialno} 结束高频心率状态 timeDiffInSeconds {timeDiffInSeconds},highFreqSampleInterval:{highFreqSampleInterval}"); |
|
|
|
} |
|
|
|
// 正常心率 |
|
|
|
else |
|
|
|