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
85b4033f
Commit
85b4033f
authored
Sep 05, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加面板排行榜接口
parent
57415bae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
+6
-6
No files found.
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
View file @
85b4033f
...
...
@@ -381,13 +381,13 @@
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)
and DATE_FORMAT(e.create_time, '%Y-%m-%d') =
#{dateString}
</if>
<if
test=
"date==2"
>
and DATE_FORMAT(e.create_time, '%Y-%m') = #{dateString}
and
DATE_FORMAT(e.create_time, '%Y-%m') = #{dateString}
</if>
<if
test=
"date==1"
>
and DATE_FORMAT(e.create_time, '%Y') = #{dateString}
and DATE_FORMAT(e.create_time, '%Y')
= #{dateString}
</if>
group by dept_name order by num desc limit 5
</select>
...
...
@@ -397,13 +397,13 @@
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)
and DATE_FORMAT(e.create_time, '%Y-%m-%d') =
#{dateString}
</if>
<if
test=
"date==2"
>
and DATE_FORMAT(e.create_time, '%Y-%m') = #{dateString}
and
DATE_FORMAT(e.create_time, '%Y-%m') = #{dateString}
</if>
<if
test=
"date==1"
>
and DATE_FORMAT(e.create_time, '%Y') = #{dateString}
and DATE_FORMAT(e.create_time, '%Y')
= #{dateString}
</if>
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>
...
...
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