소스 검색

调整

datasub12_previous
H Vs 1 년 전
부모
커밋
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;
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}' " +
$"and serialno='{imeiDel}' " +
@@ -249,8 +251,7 @@ namespace HealthMonitor.WebApi
var currentSystolicInc = (int)((systolicRefValue - systolicAvg) * systolicAvgOffset)!;
var currentDiastolicInc = (int)((diastolicRefValue - diastolicAvg) * diastolicAvgOffset)!;

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


Loading…
취소
저장