mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-07 14:18:03 +08:00
Synchronization code
This commit is contained in:
parent
80e718695e
commit
c336836320
@ -86,7 +86,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
date = UtilMethods.GetMinDate(this.Context.CurrentConnectionConfig);
|
date = UtilMethods.GetMinDate(this.Context.CurrentConnectionConfig);
|
||||||
}
|
}
|
||||||
return "'" + date.ToString("yyyy-MM-dd HH:mm:ss.fff") + "'";
|
if (this.Context.CurrentConnectionConfig?.MoreSettings?.DisableMillisecond == true)
|
||||||
|
{
|
||||||
|
return "to_date('" + date.ToString("yyyy-MM-dd HH:mm:ss") + "', 'YYYY-MM-DD HH24:MI:SS') ";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "to_timestamp('" + date.ToString("yyyy-MM-dd HH:mm:ss.ffffff") + "', 'YYYY-MM-DD HH24:MI:SS.FF') ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (type.IsEnum())
|
else if (type.IsEnum())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user