Skip to content

Commit

Permalink
Update withtempquery.md
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 authored Nov 9, 2024
1 parent ddddb47 commit 8687de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/withtempquery.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ fsql.Select<object>()
)
.FromQuery(
fsql.Select<T1, T2>().InnerJoin((a,b) => ...)
.WHere((a,b) => a.CreateDate.BetweenEnd(startDate, endDate)
.Where((a,b) => a.CreateDate.BetweenEnd(startDate, endDate)
.GroupBy((a,b) => a.CreateDate.Date.ToString("yyyy-MM-dd"))
.WithTempQuery(g => new { Date = g.Key, Type1Total = g.Sum(g.Value.Item2.Qty1) }),
fsql.Select<T3>()
.WHere(a => a.CreateDate.BetweenEnd(startDate, endDate)
.Where(a => a.CreateDate.BetweenEnd(startDate, endDate)
.GroupBy(a => a.CreateDate.Date.ToString("yyyy-MM-dd"))
.WithTempQuery(g => new { Date = g.Key, Type2Total = g.Sum(g.Value.Qty2) }),
//... 最多支持 16 个 ISelect 合并
Expand Down

0 comments on commit 8687de1

Please sign in to comment.