Update TDengine

This commit is contained in:
sunkaixuan
2023-08-08 18:14:40 +08:00
parent 9a5f4fe03d
commit 6522c5cb3d
4 changed files with 50 additions and 2 deletions

View File

@@ -80,9 +80,13 @@ namespace SqlSugar.TDengine
return GetDbColumn(it, null);
}
object value = null;
if (it.Value is DateTime)
if (it?.Value is DateTime)
{
value = ((DateTime)it.Value).ToString("O");
value = it.Value.ObjToDate().ToString("yyyy-MM-dd HH:mm:ss.fff");
}
else if (it?.Value is bool)
{
value = value?.ToString()?.ToLower();
}
else if (it.Value is DateTimeOffset)
{