Browse Source

调整日志

datasub12_previous
H Vs 11 months ago
parent
commit
c5850f1be5
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      HealthMonitor.Service/Biz/db/TDengineService.cs
  2. +1
    -1
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

+ 1
- 0
HealthMonitor.Service/Biz/db/TDengineService.cs View File

@@ -145,6 +145,7 @@ namespace HealthMonitor.Service.Biz.db
// //TDengine.Options((int)TDengineInitOption.TSDB_OPTION_CONFIGDIR, configDir);
// TDengine.Options((int)TDengineInitOption.TSDB_OPTION_TIMEZONE, "Asia/Beijing");
//#endif
_logger.LogInformation($"Insert SQL: {sql}");
IntPtr res = TDengine.Query(conn, sql);
CheckRes(conn, res, "failed to insert data");
int affectedRows = TDengine.AffectRows(res);


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

@@ -209,7 +209,7 @@ namespace HealthMonitor.Service.Resolver
$"{systolicAvgOffset}," +
$"{diastolicAvgOffset}," +
$"'{startTime:yyyy-MM-dd HH:mm:ss.fff}'," +
$"'{endTime:yyyy-MM-dd HH:mm:ss.fff}'," +
$"'{endTime:yyyy-MM-dd HH:mm:ss.fff}'" +
$")";

_serviceTDengine.ExecuteInsertSQL(sql);


Loading…
Cancel
Save