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
f638a040
Commit
f638a040
authored
Dec 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/社群' into 'developer'
统计 See merge request
!731
parents
6c4fd15b
88d8f231
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
GroupChatDataMapper.xml
...ce/src/main/resources/mapper/chat/GroupChatDataMapper.xml
+2
-2
GroupChatDataController.java
...n/manage/web/controller/chat/GroupChatDataController.java
+4
-0
No files found.
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatDataMapper.xml
View file @
f638a040
...
@@ -124,8 +124,8 @@
...
@@ -124,8 +124,8 @@
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatDataDTO"
>
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatDataDTO"
>
SELECT
SELECT
staffId, staffName, `date`, chatTotal, memberTotal,
staffId, staffName, `date`, chatTotal, memberTotal,
SUM(newChatCnt)
, SUM(chatHasMsg), SUM(newMemberCnt)
,
SUM(newChatCnt)
newChatCnt, SUM(chatHasMsg) chatHasMsg, SUM(newMemberCnt) newMemberCnt
,
SUM(memberHasMsg)
, SUM(msgTotal)
SUM(memberHasMsg)
memberHasMsg, SUM(msgTotal) msgTotal
FROM
FROM
(SELECT
(SELECT
b.staff_name staffName, a.staff_id staffId, a.date `date`,
b.staff_name staffName, a.staff_id staffId, a.date `date`,
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatDataController.java
View file @
f638a040
...
@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.DateUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
...
@@ -39,6 +40,7 @@ public class GroupChatDataController {
...
@@ -39,6 +40,7 @@ public class GroupChatDataController {
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setStartDate
(
DateUtil
.
getStartTimeOfDay
(
qdto
.
getStartDate
()));
ServiceResponse
<
GroupChatDataDTO
>
resp
=
this
.
groupChatDataApiService
.
listTotalData
(
qdto
);
ServiceResponse
<
GroupChatDataDTO
>
resp
=
this
.
groupChatDataApiService
.
listTotalData
(
qdto
);
GroupChatDataVO
vo
=
EntityUtil
.
changeEntityByJSON
(
GroupChatDataVO
.
class
,
resp
.
getResult
());
GroupChatDataVO
vo
=
EntityUtil
.
changeEntityByJSON
(
GroupChatDataVO
.
class
,
resp
.
getResult
());
return
RestResponse
.
successResult
(
vo
);
return
RestResponse
.
successResult
(
vo
);
...
@@ -49,6 +51,7 @@ public class GroupChatDataController {
...
@@ -49,6 +51,7 @@ public class GroupChatDataController {
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setStartDate
(
DateUtil
.
getStartTimeOfDay
(
qdto
.
getStartDate
()));
ServiceResponse
<
List
<
GroupChatDataDTO
>>
resp
=
this
.
groupChatDataApiService
.
listForChat
(
qdto
);
ServiceResponse
<
List
<
GroupChatDataDTO
>>
resp
=
this
.
groupChatDataApiService
.
listForChat
(
qdto
);
List
<
GroupChatDataVO
>
list
=
EntityUtil
.
changeEntityListByJSON
(
GroupChatDataVO
.
class
,
resp
.
getResult
());
List
<
GroupChatDataVO
>
list
=
EntityUtil
.
changeEntityListByJSON
(
GroupChatDataVO
.
class
,
resp
.
getResult
());
return
RestResponse
.
successResult
(
list
);
return
RestResponse
.
successResult
(
list
);
...
@@ -59,6 +62,7 @@ public class GroupChatDataController {
...
@@ -59,6 +62,7 @@ public class GroupChatDataController {
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setStartDate
(
DateUtil
.
getStartTimeOfDay
(
qdto
.
getStartDate
()));
ServiceResponse
<
Page
<
GroupChatDataDTO
>>
resp
=
this
.
groupChatDataApiService
.
listStaffData
(
qdto
,
basePageInfo
);
ServiceResponse
<
Page
<
GroupChatDataDTO
>>
resp
=
this
.
groupChatDataApiService
.
listStaffData
(
qdto
,
basePageInfo
);
Page
<
GroupChatDataDTO
>
page
=
resp
.
getResult
();
Page
<
GroupChatDataDTO
>
page
=
resp
.
getResult
();
List
<
GroupChatDataVO
>
list
=
EntityUtil
.
changeEntityListByJSON
(
GroupChatDataVO
.
class
,
page
.
getResult
());
List
<
GroupChatDataVO
>
list
=
EntityUtil
.
changeEntityListByJSON
(
GroupChatDataVO
.
class
,
page
.
getResult
());
...
...
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