mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-27 10:40:59 +08:00
- 优化 DateTime.Subtract 统一得到秒差值;
This commit is contained in:
@@ -461,7 +461,6 @@ namespace FreeSql.ClickHouse
|
||||
switch ((exp.Arguments[0].Type.IsNullableType() ? exp.Arguments[0].Type.GetGenericArguments().FirstOrDefault() : exp.Arguments[0].Type).FullName)
|
||||
{
|
||||
case "System.DateTime": return $"dateDiff(second, {args1}, toDateTime({left}))";
|
||||
case "System.TimeSpan": return $"addSeconds(toDateTime({left}),(({args1})*-1))";
|
||||
}
|
||||
break;
|
||||
case "Equals": return $"({left} = {args1})";
|
||||
|
||||
Reference in New Issue
Block a user