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
659aaed0
Commit
659aaed0
authored
Dec 08, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据统计
parent
3887ef49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
7 deletions
+33
-7
GroupChatDataMapper.java
...n/manage/service/dao/mapper/chat/GroupChatDataMapper.java
+6
-2
GroupChatDataMapper.xml
...ce/src/main/resources/mapper/chat/GroupChatDataMapper.xml
+27
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/chat/GroupChatDataMapper.java
View file @
659aaed0
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
.
chat
;
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
.
chat
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
com.gic.haoban.manage.api.dto.chat.GroupChatDataDTO
;
import
com.gic.haoban.manage.api.dto.qdto.chat.ChatDataSearchQDTO
;
import
com.gic.haoban.manage.service.entity.chat.TabGroupChatData
;
import
com.gic.haoban.manage.service.entity.chat.TabGroupChatData
;
/**
/**
...
@@ -18,5 +19,7 @@ public interface GroupChatDataMapper {
...
@@ -18,5 +19,7 @@ public interface GroupChatDataMapper {
public
int
insert
(
TabGroupChatData
entity
);
public
int
insert
(
TabGroupChatData
entity
);
public
List
<
TabGroupChatData
>
listByParams
(
Map
<
String
,
Object
>
params
);
public
List
<
GroupChatDataDTO
>
list
(
ChatDataSearchQDTO
qdto
);
public
List
<
GroupChatDataDTO
>
listByPage
(
ChatDataSearchQDTO
qdto
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatDataMapper.xml
View file @
659aaed0
...
@@ -69,10 +69,31 @@
...
@@ -69,10 +69,31 @@
]]>
]]>
</insert>
</insert>
<select
id=
"listByParams"
parameterType=
"java.util.Map"
<select
id=
"list"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.ChatDataSearchQDTO"
resultMap=
"result-map-tabHaobanGroupChatData"
>
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatDataDTO"
>
select
select staffName , chatTotal from (
<include
refid=
"Base_Column_List"
/>
select
from tab_haoban_group_chat_data
b.staff_name staffName ,
a.staff_id staffId ,
a.date date ,
a.new_chat_cnt newChatCnt ,
a.chat_total chatTotal,
a.chat_has_msg chatHasMsg ,
a.new_member_cnt newMemberCnt ,
a.member_total memberTotal ,
a.member_has_msg memberHasMsg ,
a.msg_total msgTotal ,
a. migrate_trainee_chat_cnt migrateTraineeChatCnt
from tab_haoban_group_chat_data a left join tab_haoban_staff b on a.staff_id = b.staff_id
where a.wx_enterprise_id = #{wxEnterpriseId}
and a.date >= #{startDate} and a.date
<
= #{endDate}
<if
test=
"null != staffIdList and staffIdList.size > 0"
>
and a.staff_id in
<foreach
collection=
"staffIdList"
close=
")"
open=
"("
index=
"index"
item=
"staffId"
separator=
","
>
#{staffId}
</foreach>
</if>
ORDER BY a.date DESC
)
</select>
</select>
</mapper>
</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