Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
bc96131c
Commit
bc96131c
authored
Dec 30, 2021
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决下载报错
parent
504d5033
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
performance/Performance.Repository/PerforReportRepository .cs
+2
-0
No files found.
performance/Performance.Repository/PerforReportRepository .cs
View file @
bc96131c
...
...
@@ -432,6 +432,8 @@ public List<dynamic> QueryComputeByDate(string viewName, DateTime beginTime, Dat
sql
=
$"select
{
string
.
Join
(
","
,
groupBy
)}
,
{
string
.
Join
(
","
,
sumBy
.
Select
(
t
=>
$"sum(
{
t
}
)
{
t
}
"
))}
from (
{
sql
}
) tab group by
{
string
.
Join
(
","
,
groupBy
)}
"
;
sql
=
$@" select 0 as count;
{
sql
}
"
;
if
(
pageNumber
!=
0
&&
pageSize
!=
0
)
sql
=
$@" select count(1) count from (
{
sql
}
) tab;
{
sql
}
limit
{
pageSize
}
offset
{(
pageNumber
-
1
)}
;"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment