Преглед на файлове

调整

datasub12_previous
H Vs преди 11 месеца
родител
ревизия
4b0170e427
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. +3
    -2
      HealthMonitor.WebApi/Worker.cs

+ 3
- 2
HealthMonitor.WebApi/Worker.cs Целия файл

@@ -222,6 +222,8 @@ namespace HealthMonitor.WebApi


systolicRefValue = lastPush!.SystolicRefValue; systolicRefValue = lastPush!.SystolicRefValue;
diastolicRefValue = lastPush!.DiastolicRefValue; diastolicRefValue = lastPush!.DiastolicRefValue;
lastPushSystolicInc = lastPush!.SystolicIncValue;
lastPushDiastolicInc = lastPush!.DiastolicIncValue;


condition = $"ts between '{lastPush?.Timestamp:yyyy-MM-dd HH:mm:ss.fff}' and '{startTime:yyyy-MM-dd HH:mm:ss.fff}' " + condition = $"ts between '{lastPush?.Timestamp:yyyy-MM-dd HH:mm:ss.fff}' and '{startTime:yyyy-MM-dd HH:mm:ss.fff}' " +
$"and serialno='{imeiDel}' " + $"and serialno='{imeiDel}' " +
@@ -249,8 +251,7 @@ namespace HealthMonitor.WebApi
var currentSystolicInc = (int)((systolicRefValue - systolicAvg) * systolicAvgOffset)!; var currentSystolicInc = (int)((systolicRefValue - systolicAvg) * systolicAvgOffset)!;
var currentDiastolicInc = (int)((diastolicRefValue - diastolicAvg) * diastolicAvgOffset)!; var currentDiastolicInc = (int)((diastolicRefValue - diastolicAvg) * diastolicAvgOffset)!;


lastPushSystolicInc = lastPush!.SystolicIncValue;
lastPushDiastolicInc= lastPush!.DiastolicIncValue;
// 累计增量 // 累计增量
systolicInc = currentSystolicInc + lastPushSystolicInc; systolicInc = currentSystolicInc + lastPushSystolicInc;
diastolicInc = currentDiastolicInc + lastPushDiastolicInc; diastolicInc = currentDiastolicInc + lastPushDiastolicInc;


Loading…
Отказ
Запис