Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
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
hqzhdj
site-project
Commits
57415bae
Commit
57415bae
authored
Sep 05, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加面板排行榜接口
parent
e8d4118f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
cloud-site-api/src/main/java/com/yizhi/site/application/vo/site/EventTrackRankListVo.java
+1
-1
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
+6
-5
No files found.
cloud-site-api/src/main/java/com/yizhi/site/application/vo/site/EventTrackRankListVo.java
View file @
57415bae
...
...
@@ -9,6 +9,6 @@ public class EventTrackRankListVo {
private
String
name
;
private
Integer
num
;
private
int
num
;
}
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
View file @
57415bae
...
...
@@ -378,7 +378,7 @@
</select>
<select
id=
"queryRankListByDept"
resultType=
"com.yizhi.site.application.vo.site.EventTrackRankListVo"
>
select dept_name as name, count(*) as
cnt
from event_track e where
select dept_name as name, count(*) as
num
from event_track e where
type in ('9', '13') and dept_name is not null
<if
test=
"date==3"
>
and DATE_FORMAT(e.create_time, '%Y-%m-%d') = DATE_SUB(DATE_FORMAT(#{dateString}, '%Y-%m-%d'), INTERVAL 1 DAY)
...
...
@@ -389,12 +389,12 @@
<if
test=
"date==1"
>
and DATE_FORMAT(e.create_time, '%Y') = #{dateString}
</if>
group by dept_name order by
cnt
desc limit 5
group by dept_name order by
num
desc limit 5
</select>
<select
id=
"queryRankListByUser"
resultType=
"com.yizhi.site.application.vo.site.EventTrackRankListVo"
>
select a.full_name as name,
cnt
from (
select create_by_id as create_by_id, count(*) as
cnt
from event_track e where
select a.full_name as name,
num
from (
select create_by_id as create_by_id, count(*) as
num
from event_track e where
type in ('9', '13')
<if
test=
"date==3"
>
and DATE_FORMAT(e.create_time, '%Y-%m-%d') = DATE_SUB(DATE_FORMAT(#{dateString}, '%Y-%m-%d'), INTERVAL 1 DAY)
...
...
@@ -405,6 +405,6 @@
<if
test=
"date==1"
>
and DATE_FORMAT(e.create_time, '%Y') = #{dateString}
</if>
group by create_by_id order by
cnt
desc limit 5 ) e left join cloud_system.account a on e.create_by_id = a.id
group by create_by_id order by
num
desc limit 5 ) e left join cloud_system.account a on e.create_by_id = a.id
</select>
</mapper>
\ No newline at end of file
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