Browse Source

建模验证

datasub12_fetal_heart_rate_1
H Vs 1 month ago
parent
commit
330ae1ab0d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs

+ 4
- 1
HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs View File

@@ -259,7 +259,10 @@ namespace HealthMonitor.Service.Resolver

#region 计算胎心数据(按心率时间LastUpdate)
var commonPHR = await _serviceTDengine.GetLastAsync<PregnancyCommonHeartRateModel>(heartRate.Serialno);
if (commonPHR == null)
// 如果commonPHR为空或已建模已过期,进行建模和保存
if (commonPHR == null || !commonPHR.CreateTime.Date.Equals(DateTime.Now.Date))
// 获取当天 6:11 的时间点, 6:11 所有数据都已经全部建模
//if (commonPHR == null || commonPHR.CreateTime < DateTime.Today.AddHours(6).AddMinutes(11))
{
// 处理孕妇业务,计算一般心率并下发
commonPHR = await _serviceTDengine.InitPregnancyCommonHeartRateModeAsync(heartRate.Serialno, highFreqSampleInterval: highFreqSampleInterval);


Loading…
Cancel
Save