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
b111395b
Commit
b111395b
authored
Oct 11, 2024
by
xiongjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社群活动统计数据
parent
e0626372
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
GroupChatActivityDataController.java
.../web/controller/chat/GroupChatActivityDataController.java
+19
-6
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatActivityDataController.java
View file @
b111395b
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
chat
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
...
...
@@ -65,8 +66,12 @@ public class GroupChatActivityDataController {
WebLoginDTO
user
=
AuthWebRequestUtil
.
getLoginUser
();
overviewReq
.
setEnterpriseId
(
user
.
getEnterpriseId
());
Map
<
String
,
Object
>
res
=
DataApiUtils
.
http
(
JSON
.
toJSONString
(
overviewReq
),
StatisticsApolloKeyConstant
.
data_mkt_group_chat_data_overview
);
Page
<
GroupChatDataOverviewVO
>
resListPage
=
DataApiUtils
.
getPageData
(
res
);
GroupChatDataOverviewVO
groupChatDataOverviewVO
=
CollectionUtils
.
isEmpty
(
resListPage
.
getResult
())
?
null
:
resListPage
.
getResult
().
get
(
0
);
Page
page
=
DataApiUtils
.
getPageData
(
res
);
List
<
JSONObject
>
result
=
page
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
result
)){
return
RestResponse
.
successResult
(
null
);
}
GroupChatDataOverviewVO
groupChatDataOverviewVO
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
result
.
get
(
0
)),
GroupChatDataOverviewVO
.
class
);
return
RestResponse
.
successResult
(
groupChatDataOverviewVO
);
}
...
...
@@ -82,8 +87,12 @@ public class GroupChatActivityDataController {
WebLoginDTO
user
=
AuthWebRequestUtil
.
getLoginUser
();
rewardLevelReq
.
setEnterpriseId
(
user
.
getEnterpriseId
());
Map
<
String
,
Object
>
res
=
DataApiUtils
.
http
(
JSON
.
toJSONString
(
rewardLevelReq
),
StatisticsApolloKeyConstant
.
data_mkt_group_chat_data_reward_level
);
Page
<
GroupChatDataRewardLevelVO
>
resList
=
DataApiUtils
.
getPageData
(
res
);
return
RestResponse
.
successResult
(
resList
);
Page
page
=
DataApiUtils
.
getPageData
(
res
);
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getResult
())){
List
<
GroupChatDataRewardLevelVO
>
groupChatDataOverviewVOList
=
JSON
.
parseArray
(
JSON
.
toJSONString
(
page
.
getResult
()),
GroupChatDataRewardLevelVO
.
class
);
page
.
setResult
(
groupChatDataOverviewVOList
);
}
return
RestResponse
.
successResult
(
page
);
}
/**
...
...
@@ -98,8 +107,12 @@ public class GroupChatActivityDataController {
WebLoginDTO
user
=
AuthWebRequestUtil
.
getLoginUser
();
inviterDetailReq
.
setEnterpriseId
(
user
.
getEnterpriseId
());
Map
<
String
,
Object
>
res
=
DataApiUtils
.
http
(
JSON
.
toJSONString
(
inviterDetailReq
),
StatisticsApolloKeyConstant
.
data_mkt_group_chat_data_inviter_detail
);
Page
<
GroupChatDataInviterDetailVO
>
resListPage
=
DataApiUtils
.
getPageData
(
res
);
return
RestResponse
.
successResult
(
resListPage
);
Page
page
=
DataApiUtils
.
getPageData
(
res
);
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getResult
())){
List
<
GroupChatDataInviterDetailVO
>
groupChatDataInviterDetailVOS
=
JSON
.
parseArray
(
JSON
.
toJSONString
(
page
.
getResult
()),
GroupChatDataInviterDetailVO
.
class
);
page
.
setResult
(
groupChatDataInviterDetailVOS
);
}
return
RestResponse
.
successResult
(
page
);
}
...
...
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