Pārlūkot izejas kodu

如果最大值与最小值在60~100范围内,都按个固定值下发高频阈值

datasub12_fetal_heart_rate_0
H Vs pirms 3 mēnešiem
vecāks
revīzija
de37657cc8
1 mainītis faili ar 3 papildinājumiem un 7 dzēšanām
  1. +3
    -7
      HealthMonitor.Service/Biz/db/TDengineService.cs

+ 3
- 7
HealthMonitor.Service/Biz/db/TDengineService.cs Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt