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
268b8c4a
Commit
268b8c4a
authored
Nov 04, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature/202310月零散迭代' into feature/202310月零散迭代
parents
cd9c839e
29514c17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
GroupChatServiceImpl.java
...anage/service/service/chat/impl/GroupChatServiceImpl.java
+5
-2
GroupChatUserMapper.xml
...ce/src/main/resources/mapper/chat/GroupChatUserMapper.xml
+2
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatServiceImpl.java
View file @
268b8c4a
...
...
@@ -695,9 +695,12 @@ public class GroupChatServiceImpl implements GroupChatService {
if
(
null
!=
staffId
)
{
List
<
StaffClerkRelationDTO
>
staffList
=
this
.
staffClerkRelationService
.
listByStaffId
(
wxEnterpriseId
,
staffId
)
;
if
(
CollectionUtils
.
isNotEmpty
(
staffList
))
{
List
<
String
>
storeIdList
=
staffList
.
stream
().
filter
(
o
->
StringUtils
.
isNotEmpty
(
o
.
getStoreId
())).
map
(
o
->
o
.
get
Enterpris
eId
()).
collect
(
Collectors
.
toList
())
;
List
<
String
>
storeIdList
=
staffList
.
stream
().
filter
(
o
->
StringUtils
.
isNotEmpty
(
o
.
getStoreId
())).
map
(
o
->
o
.
get
Stor
eId
()).
collect
(
Collectors
.
toList
())
;
if
(
CollectionUtils
.
isNotEmpty
(
storeIdList
))
{
String
[]
arr
=
(
String
[])
storeIdList
.
toArray
();
String
[]
arr
=
new
String
[
storeIdList
.
size
()]
;
for
(
int
i
=
0
;
i
<
storeIdList
.
size
();
i
++)
{
arr
[
i
]
=
storeIdList
.
get
(
i
)
;
}
List
<
StoreDTO
>
storeList
=
this
.
storeService
.
getStores
(
arr
)
;
if
(
CollectionUtils
.
isNotEmpty
(
storeList
))
{
storeName
=
storeList
.
stream
().
map
(
o
->
o
.
getStoreName
()).
collect
(
Collectors
.
joining
(
"、"
))
;
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatUserMapper.xml
View file @
268b8c4a
...
...
@@ -241,6 +241,7 @@
a.invitor_user_id invitorUserId,
a.invitor_user_name invitorUserName ,
a.user_quit_time userQuitTime,
a.quit_staff_store quitStaffStore ,
a.join_scene joinScene,
a.join_state joinState
from tab_haoban_group_chat_user a
...
...
@@ -305,7 +306,7 @@
</select>
<select
id=
"listQuitNum"
resultType=
"com.gic.haoban.manage.service.pojo.bo.chat.UserQuitBO"
>
select quit_staff_id
, count(*)
from tab_haoban_group_chat_user where wx_enterprise_id=#{wxEnterpriseId} and user_quit_time >= #{start}
select quit_staff_id
staffId , count(*) num
from tab_haoban_group_chat_user where wx_enterprise_id=#{wxEnterpriseId} and user_quit_time >= #{start}
and user_quit_time
<![CDATA[<=]]>
#{end} and status_flag = 2 group by quit_staff_id
</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