Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ncov
/
back
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
lintry
2020-01-29 16:05:23 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f70edb72b45611e2c93ea8cf01b8162bcde2d54e
f70edb72
1 parent
c16cada8
增加最大值
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
server/routers/c/info_action.js
server/routers/c/info_action.js
View file @
f70edb7
...
...
@@ -54,9 +54,10 @@ module.exports = function (dbo) {
left join stats st on st.province = pr.province and st.today = d.today
order by 1,2
)
select province, jsonb_agg(today) days, jsonb_agg(confirmed_count) confirmed_counts
select province,
max(confirmed_count) max_count,
jsonb_agg(today) days, jsonb_agg(confirmed_count) confirmed_counts
from dat
group by 1
order by 2 desc
`
,
{
replacements
:
{
province_name
},
type
:
dbo
.
QueryTypes
.
SELECT
});
return
Result
.
Ok
(
'成功!'
,
result
);
...
...
Please
register
or
login
to post a comment