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
78704933
Commit
78704933
authored
Jul 03, 2024
by
xiongjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群聊统计
parent
cc4677c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
42 deletions
+46
-42
ChatDataController.java
.../gic/haoban/manage/web/controller/ChatDataController.java
+45
-38
GroupDetailsHandle.java
.../com/gic/haoban/manage/web/handle/GroupDetailsHandle.java
+1
-4
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ChatDataController.java
View file @
78704933
...
...
@@ -1003,14 +1003,14 @@ public class ChatDataController extends NewBaseController {
* @return
*/
@RequestMapping
(
"export-join-group-details"
)
public
RestResponse
<
Object
>
exportJoinGroupDetails
(
@RequestBody
GroupChatDetailReq
req
)
{
public
RestResponse
<
Object
>
exportJoinGroupDetails
(
@RequestBody
GroupChat
Join
DetailReq
req
)
{
DownloadTask
task
=
new
DownloadTask
();
task
.
setTaskTypeEnum
(
TaskTypeEnum
.
GROUP_CHAT_JOIN_DATE
);
task
.
setDataType
(
req
.
getDataType
());
task
.
setUser
(
getUserInfo
());
task
.
setTotalCount
(
groupData
Details
(
req
).
getResult
().
getTotalNum
());
task
.
setTotalCount
(
joinGroup
Details
(
req
).
getResult
().
getTotalNum
());
JSONObject
jsonObject
=
new
JSONObject
();
req
.
dealWithParam
(
jsonObject
);
...
...
@@ -1019,6 +1019,18 @@ public class ChatDataController extends NewBaseController {
//Excel的标题是字段进行计算
List
<
String
>
indexList
=
new
ArrayList
<>();
List
<
String
>
fieldList
=
new
ArrayList
<>();
indexList
.
add
(
"入群成员姓名"
);
fieldList
.
add
(
"memberName"
);
indexList
.
add
(
"入群成员昵称"
);
fieldList
.
add
(
"memberNick"
);
indexList
.
add
(
"入群成员手机号/code"
);
fieldList
.
add
(
"memberNumber"
);
indexList
.
add
(
"用户身份"
);
fieldList
.
add
(
"userType"
);
indexList
.
add
(
"群名称"
);
fieldList
.
add
(
"groupChatName"
);
...
...
@@ -1028,33 +1040,29 @@ public class ChatDataController extends NewBaseController {
indexList
.
add
(
"群主姓名"
);
fieldList
.
add
(
"staffName"
);
indexList
.
add
(
"导购姓名"
);
indexList
.
add
(
"
群主关联
导购姓名"
);
fieldList
.
add
(
"clerkName"
);
indexList
.
add
(
"导购code"
);
indexList
.
add
(
"
群主关联
导购code"
);
fieldList
.
add
(
"clerkCode"
);
indexList
.
add
(
"
导购所属
门店名称"
);
indexList
.
add
(
"
群主关联
门店名称"
);
fieldList
.
add
(
"storeName"
);
indexList
.
add
(
"
导购所属
门店code"
);
indexList
.
add
(
"
群主关联
门店code"
);
fieldList
.
add
(
"storeCode"
);
indexList
.
add
(
"
群总人数
"
);
fieldList
.
add
(
"
groupCustNum
"
);
indexList
.
add
(
"
入群方式
"
);
fieldList
.
add
(
"
joinScene
"
);
indexList
.
add
(
"
新增群人数
"
);
fieldList
.
add
(
"
newGroupCustNum
"
);
indexList
.
add
(
"
邀请人姓名
"
);
fieldList
.
add
(
"
invitorUserName
"
);
indexList
.
add
(
"活跃群人数"
);
fieldList
.
add
(
"actGroupCustNum"
);
indexList
.
add
(
"新退群人数"
);
fieldList
.
add
(
"newExitGroupCustNum"
);
indexList
.
add
(
"群会话总条数"
);
fieldList
.
add
(
"groupSessionsNum"
);
indexList
.
add
(
"邀请人code"
);
fieldList
.
add
(
"invitorUserName"
);
indexList
.
add
(
"入群时间"
);
fieldList
.
add
(
"joinTime"
);
task
.
setFileName
(
"好办群聊统计-入群明细-"
+
req
.
getStartDate
()
+
"_"
+
req
.
getEndDate
());
task
.
setChannelName
(
"数据-会话数据-群聊统计"
);
...
...
@@ -1126,6 +1134,19 @@ public class ChatDataController extends NewBaseController {
//Excel的标题是字段进行计算
List
<
String
>
indexList
=
new
ArrayList
<>();
List
<
String
>
fieldList
=
new
ArrayList
<>();
indexList
.
add
(
"退群成员姓名"
);
fieldList
.
add
(
"memberName"
);
indexList
.
add
(
"退群成员昵称"
);
fieldList
.
add
(
"memberNick"
);
indexList
.
add
(
"退群成员手机号/code"
);
fieldList
.
add
(
"memberNumber"
);
indexList
.
add
(
"用户身份"
);
fieldList
.
add
(
"userType"
);
indexList
.
add
(
"群名称"
);
fieldList
.
add
(
"groupChatName"
);
...
...
@@ -1135,33 +1156,20 @@ public class ChatDataController extends NewBaseController {
indexList
.
add
(
"群主姓名"
);
fieldList
.
add
(
"staffName"
);
indexList
.
add
(
"导购姓名"
);
indexList
.
add
(
"
群主关联
导购姓名"
);
fieldList
.
add
(
"clerkName"
);
indexList
.
add
(
"导购code"
);
indexList
.
add
(
"
群主关联
导购code"
);
fieldList
.
add
(
"clerkCode"
);
indexList
.
add
(
"
导购所属
门店名称"
);
indexList
.
add
(
"
群主关联
门店名称"
);
fieldList
.
add
(
"storeName"
);
indexList
.
add
(
"
导购所属
门店code"
);
indexList
.
add
(
"
群主关联
门店code"
);
fieldList
.
add
(
"storeCode"
);
indexList
.
add
(
"群总人数"
);
fieldList
.
add
(
"groupCustNum"
);
indexList
.
add
(
"新增群人数"
);
fieldList
.
add
(
"newGroupCustNum"
);
indexList
.
add
(
"活跃群人数"
);
fieldList
.
add
(
"actGroupCustNum"
);
indexList
.
add
(
"新退群人数"
);
fieldList
.
add
(
"newExitGroupCustNum"
);
indexList
.
add
(
"群会话总条数"
);
fieldList
.
add
(
"groupSessionsNum"
);
indexList
.
add
(
"退群时间"
);
fieldList
.
add
(
"userQuitTime"
);
task
.
setFileName
(
"好办群聊统计-退群明细-"
+
req
.
getStartDate
()
+
"_"
+
req
.
getEndDate
());
task
.
setChannelName
(
"数据-会话数据-群聊统计"
);
...
...
@@ -1278,7 +1286,6 @@ public class ChatDataController extends NewBaseController {
indexList
.
add
(
"会话时间"
);
fieldList
.
add
(
"sendTime"
);
task
.
setFileName
(
"好办群聊统计-会话明细-"
+
req
.
getStartDate
()
+
"_"
+
req
.
getEndDate
());
task
.
setChannelName
(
"数据-会话数据-群聊统计"
);
task
.
setBucketName
(
BucketNameEnum
.
REPORT_50000
.
getName
());
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/handle/GroupDetailsHandle.java
View file @
78704933
...
...
@@ -36,12 +36,9 @@ public class GroupDetailsHandle extends DownloadHandlerAbstract<GroupChatDetail
JSONObject
jsonObject
=
JSON
.
parseObject
(
searchDataParams
);
jsonObject
.
put
(
"pageNum"
,
currentPage
);
jsonObject
.
put
(
"pageSize"
,
getPageSize
());
Map
<
String
,
Object
>
res
=
DataApiUtils
.
http
(
jsonObject
.
toJSONString
(),
"data_mbr_scale_haoban_qw_
chat_count
"
);
Map
<
String
,
Object
>
res
=
DataApiUtils
.
http
(
jsonObject
.
toJSONString
(),
"data_mbr_scale_haoban_qw_
group_chat_detail
"
);
List
<
JSONObject
>
list
=
DataApiUtils
.
getPageList
(
res
);
jsonObject
.
put
(
"groupType"
,
1
);
jsonObject
.
put
(
"storeGroup"
,
8
);
if
(
list
==
null
)
{
list
=
new
ArrayList
<>();
}
...
...
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