瀏覽代碼

调整

datasub12_fetal_heart_rate_0
H Vs 3 月之前
父節點
當前提交
9840ff90eb
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs

+ 2
- 1
HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs 查看文件

@@ -254,7 +254,8 @@ namespace HealthMonitor.Service.Resolver
//_logger.LogInformation($"{heartRate.Serialno} 设置 stopHighFreqSampleCount {stopHighFreqSampleCount}");

//var lastPhr = phr.OrderByDescending(i => i.LastUpdate).Take(stopHighFreqSampleCount).ToList();
var lastPhr = phr.Where(i=>i.LastUpdate>= phrFreqstatus!.LastUpdate).Take(stopHighFreqSampleCount).ToList();
var lastPhr = phr.Where(i=>i.LastUpdate>= phrFreqstatus!.LastUpdate)
.OrderByDescending(i => i.LastUpdate).Take(stopHighFreqSampleCount).ToList();

// 检查是否连续12个值都是正常的
if (lastPhr.Count >= stopHighFreqSampleCount &&


Loading…
取消
儲存