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
e8d4118f
Commit
e8d4118f
authored
Sep 05, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加面板排行榜接口
parent
23c4135b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
+7
-6
No files found.
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
View file @
e8d4118f
...
...
@@ -377,8 +377,7 @@
GROUP BY agm.group_id
</select>
<select
id=
"queryRankListByUser"
resultType=
"com.yizhi.site.application.vo.site.EventTrackRankListVo"
>
select a.full_name as name, cnt from (
<select
id=
"queryRankListByDept"
resultType=
"com.yizhi.site.application.vo.site.EventTrackRankListVo"
>
select dept_name as name, count(*) as cnt from event_track e where
type in ('9', '13') and dept_name is not null
<if
test=
"date==3"
>
...
...
@@ -390,11 +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
) e left join cloud_system.account a on e.create_by_id = a.id
group by dept_name order by cnt desc limit 5
</select>
<select
id=
"queryRankListByDept"
resultType=
"com.yizhi.site.application.vo.site.EventTrackRankListVo"
>
select create_by_id as name, count(*) as cnt from event_track e where
<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
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
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
</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