Update mysql

This commit is contained in:
sunkaixuan 2023-09-06 11:24:17 +08:00
parent 921a2d1537
commit 9270ab78f5

View File

@ -44,7 +44,7 @@ namespace SqlSugar
if (Skip != null && Take == null) if (Skip != null && Take == null)
{ {
if (this.OrderByValue == "ORDER BY ") this.OrderByValue += GetSelectValue.Split(',')[0]; if (this.OrderByValue == "ORDER BY ") this.OrderByValue += GetSelectValue.Split(',')[0];
result = string.Format(PageTempalte, GetSelectValue, GetTableNameString, GetWhereValueString, GetGroupByString + HavingInfos, (Skip != null || Take != null) ? null : GetOrderByString, Skip.ObjToInt(), long.MaxValue); result = string.Format(PageTempalte, GetSelectValue, GetTableNameString, GetWhereValueString, GetGroupByString + HavingInfos, GetOrderByString, Skip.ObjToInt(), long.MaxValue);
} }
else if (Skip == null && Take != null) else if (Skip == null && Take != null)
{ {