Explorar el Código

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

datasub12_fetal_heart_rate_0
H Vs hace 3 meses
padre
commit
de37657cc8
Se han modificado 1 ficheros con 3 adiciones y 7 borrados
  1. +3
    -7
      HealthMonitor.Service/Biz/db/TDengineService.cs

+ 3
- 7
HealthMonitor.Service/Biz/db/TDengineService.cs Ver fichero

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


Cargando…
Cancelar
Guardar