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
e39fcd7b
Commit
e39fcd7b
authored
Dec 30, 2021
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决页面报错
parent
bc96131c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
performance/Performance.Repository/PerforReportRepository .cs
+3
-3
No files found.
performance/Performance.Repository/PerforReportRepository .cs
View file @
e39fcd7b
...
...
@@ -432,11 +432,11 @@ 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
)}
;"
;
select * from (
{
sql
}
) tab limit
{
pageSize
}
offset
{(
pageNumber
-
1
)}
;"
;
else
sql
=
$@" select 0 as count;
{
sql
}
"
;
var
queryMulti
=
context
.
Database
.
GetDbConnection
().
QueryMultiple
(
sql
,
new
{
beginTime
,
endTime
});
...
...
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