Browse Source

胎心建模时间改为早上6点

datasub12_fetal_heart_rate_0
H Vs 3 months ago
parent
commit
65d2cb86db
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs
  2. +1
    -1
      HealthMonitor.WebApi/Worker.cs

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

@@ -672,7 +672,7 @@ namespace HealthMonitor.Service.Resolver
var pushSec = rand.Next(59); var pushSec = rand.Next(59);
int pushMin= int.TryParse(heartRate.Serialno.AsSpan(heartRate.Serialno.Length - 1), out pushMin) ? pushMin : 10; int pushMin= int.TryParse(heartRate.Serialno.AsSpan(heartRate.Serialno.Length - 1), out pushMin) ? pushMin : 10;
// 计算距离下一个$interval天后的8点的时间间隔 // 计算距离下一个$interval天后的8点的时间间隔
DateTime nextRunTime = new DateTime(now.Year, now.Month, now.Day, 0, pushMin, pushSec).AddDays(interval);
DateTime nextRunTime = new DateTime(now.Year, now.Month, now.Day, 6, pushMin, pushSec).AddDays(interval);
TimeSpan timeUntilNextRun = nextRunTime - now; TimeSpan timeUntilNextRun = nextRunTime - now;




+ 1
- 1
HealthMonitor.WebApi/Worker.cs View File

@@ -226,7 +226,7 @@ namespace HealthMonitor.WebApi
var pushSec = rand.Next(59); var pushSec = rand.Next(59);
int pushMin = int.TryParse(imeiDel.AsSpan(imeiDel.Length - 1), out pushMin) ? pushMin : 10; int pushMin = int.TryParse(imeiDel.AsSpan(imeiDel.Length - 1), out pushMin) ? pushMin : 10;
// 计算距离下一个$interval天后的0点的时间间隔 // 计算距离下一个$interval天后的0点的时间间隔
DateTime nextRunTime = new DateTime(now.Year, now.Month, now.Day, 0, pushMin, pushSec).AddDays(interval);
DateTime nextRunTime = new DateTime(now.Year, now.Month, now.Day, 6, pushMin, pushSec).AddDays(interval);
TimeSpan timeUntilNextRun = nextRunTime - now; TimeSpan timeUntilNextRun = nextRunTime - now;


// 如果当前时间已经超过了8点,将等待到明天后的8点 // 如果当前时间已经超过了8点,将等待到明天后的8点


Loading…
Cancel
Save