Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
4f3c22a1
Commit
4f3c22a1
authored
Dec 10, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群统计
parent
0a2f31e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
GroupChatDataMapper.xml
...ce/src/main/resources/mapper/chat/GroupChatDataMapper.xml
+7
-3
No files found.
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatDataMapper.xml
View file @
4f3c22a1
...
...
@@ -71,10 +71,14 @@
<select
id=
"listTotalData"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.ChatDataSearchQDTO"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatDataDTO"
>
SELECT
staffId, `date`, chatTotal, memberTotal,
select sum(chatTotal), sum(memberTotal),
SUM(newChatCnt), SUM(chatHasMsg), SUM(newMemberCnt),
SUM(memberHasMsg), SUM(msgTotal)
from (
SELECT
staffId, `date`, chatTotal, memberTotal,
SUM(newChatCnt) newChatCnt, SUM(chatHasMsg) chatHasMsg, SUM(newMemberCnt) newMemberCnt,
SUM(memberHasMsg) memberHasMsg, SUM(msgTotal) msgTotal
FROM
(SELECT
a.staff_id staffId, a.date `date`,
...
...
@@ -91,7 +95,7 @@
</foreach>
</if>
ORDER BY a.date DESC
) t
b GROUP BY staffId
) t
1 GROUP BY staffId ) t2
</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