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