Browse Source

增加字段

master
H Vs 1 year ago
parent
commit
7989462bd5
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

+ 6
- 2
HealthMonitor.Service/Resolver/BloodpressResolver.cs View File

@@ -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


Loading…
Cancel
Save