mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 04:59:34 +08:00
Update json 2 sql
This commit is contained in:
parent
b1f5581997
commit
caa04cf787
@ -30,6 +30,10 @@ namespace SqlSugar
|
||||
}
|
||||
public ISugarQueryable<T> OrderBy(List<OrderByModel> models)
|
||||
{
|
||||
if (models == null || models.Count == 0)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
var orderObj = this.SqlBuilder.OrderByModelToSql(models);
|
||||
this.OrderBy(orderObj.Key);
|
||||
this.QueryBuilder.Parameters.AddRange(orderObj.Value);
|
||||
@ -37,6 +41,10 @@ namespace SqlSugar
|
||||
}
|
||||
public ISugarQueryable<T> GroupBy(List<GroupByModel> models)
|
||||
{
|
||||
if (models == null || models.Count == 0)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
var orderObj = this.SqlBuilder.GroupByModelToSql(models);
|
||||
this.GroupBy(orderObj.Key);
|
||||
this.QueryBuilder.Parameters.AddRange(orderObj.Value);
|
||||
|
Loading…
Reference in New Issue
Block a user