Quellcode durchsuchen

增加字段

datasub12_previous
H Vs vor 1 Jahr
Ursprung
Commit
b166c71e33
1 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  1. +6
    -2
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

+ 6
- 2
HealthMonitor.Service/Resolver/BloodpressResolver.cs Datei anzeigen

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

#region 插入BP增量值 hm_bloodpress_stats_inc
// 自动建表
var sql = $"INSERT INTO health_monitor.hm_bp_stats_inc_{bp.Serialno.Substring(bp.Serialno.Length - 2)} USING health_monitor.stb_hm_bloodpress_stats_inc TAGS ('{bp.Serialno.Substring(bp.Serialno.Length - 2)}') VALUES(" +
var sql = $"INSERT INTO health_monitor.hm_bp_stats_inc_{bp.Serialno.Substring(bp.Serialno.Length - 2)} " +
$"USING health_monitor.stb_hm_bloodpress_stats_inc " +
$"TAGS ('{bp.Serialno.Substring(bp.Serialno.Length - 2)}') " +
$"VALUES(" +
$"'{bp.LastUpdate:yyyy-MM-dd HH:mm:ss.fff}'," +
$"'{bp.BloodPressId}'," +
$"'{bp.MessageId}'," +
@@ -182,7 +185,8 @@ namespace HealthMonitor.Service.Resolver
$"{duration}," +
$"'{startTime:yyyy-MM-dd HH:mm:ss.fff}'," +
$"'{endTime:yyyy-MM-dd HH:mm:ss.fff}'," +
$"'{string.Empty}')";
$"'{string.Empty}'," +
$"{isHypertension})";

_serviceTDengine.ExecuteInsertSQL(sql);
#endregion


Laden…
Abbrechen
Speichern