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
4070d48a
Commit
4070d48a
authored
Mar 13, 2026
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改中台活跃度统计规则
parent
fe0cfb81
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
+6
-5
No files found.
cloud-site-service/src/main/resources/mapper/EventTrackMapper.xml
View file @
4070d48a
...
...
@@ -386,17 +386,17 @@
<select
id=
"queryRankListByUser"
resultType=
"com.yizhi.site.application.vo.site.EventTrackRankListVo"
>
select a.full_name as name, num from (
select create_by_id as create_by_id, count(
*
) as num from event_track e where
select create_by_id as create_by_id, count(
DISTINCT create_by_id,DATE_FORMAT(e.create_time, '%Y-%m-%d')
) as num from event_track e where
type in ('9', '13', '16')
<if
test=
"date==3"
>
and DATE_FORMAT(e.create_time, '%Y-%m-%d') = #{dateString}
and DATE_FORMAT(e.create_time, '%Y-%m-%d') = #{dateString}
group by create_by_id,DATE_FORMAT(e.create_time, '%Y-%m-%d')
</if>
<if
test=
"date==2"
>
and DATE_FORMAT(e.create_time, '%Y-%m') = #{dateString}
and DATE_FORMAT(e.create_time, '%Y-%m') = #{dateString}
group by create_by_id,DATE_FORMAT(e.create_time, '%Y-%m')
</if>
<if
test=
"date==1"
>
and DATE_FORMAT(e.create_time, '%Y') = #{dateString}
and DATE_FORMAT(e.create_time, '%Y') = #{dateString}
group by create_by_id,DATE_FORMAT(e.create_time, '%Y')
</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
order by num desc
) 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