Update 人大金仓 PartitionByValue

This commit is contained in:
sunkaixuan
2025-03-15 15:22:44 +08:00
parent 7343a8f072
commit e50406846d

View File

@@ -51,9 +51,16 @@ namespace SqlSugar
public override string ToSqlString()
{
if (PartitionByValue.HasValue())
{
if (this.Context?.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.SqlServer)
{
return base.ToSqlString();
}
else
{
return base.ToSqlString().Replace(" GetDate() ", " NOW() ");
}
}
base.AppendFilter();
string oldOrderValue = this.OrderByValue;
var isNullOrderValue = Skip == 0 && Take == 1 && oldOrderValue == "ORDER BY NOW() ";