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
4eb3ef73
Commit
4eb3ef73
authored
Dec 28, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/社群' into 'developer'
下线时间处理 See merge request
!786
parents
fd0b3057
4c1f1f40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
GroupChatServiceImpl.java
...anage/service/service/chat/impl/GroupChatServiceImpl.java
+14
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatServiceImpl.java
View file @
4eb3ef73
...
@@ -245,18 +245,18 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -245,18 +245,18 @@ public class GroupChatServiceImpl implements GroupChatService {
@Override
@Override
public
Page
<
GroupChatDTO
>
listPage
(
GroupChatSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
public
Page
<
GroupChatDTO
>
listPage
(
GroupChatSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
List
<
TabGroupChatHmRelation
>
relationList
=
null
;
if
(
null
!=
qdto
.
getChatHmId
())
{
if
(
null
!=
qdto
.
getChatHmId
())
{
List
<
TabGroupChatHmRelation
>
list
=
null
;
if
(
qdto
.
getIncludeOff
()
==
1
)
{
if
(
qdto
.
getIncludeOff
()
==
1
)
{
l
ist
=
this
.
groupChatHmRelationMapper
.
listByChatHmIdIncludeOff
(
qdto
.
getChatHmId
());
relationL
ist
=
this
.
groupChatHmRelationMapper
.
listByChatHmIdIncludeOff
(
qdto
.
getChatHmId
());
}
else
{
}
else
{
l
ist
=
this
.
groupChatHmRelationMapper
.
listByChatHmId
(
qdto
.
getChatHmId
());
relationL
ist
=
this
.
groupChatHmRelationMapper
.
listByChatHmId
(
qdto
.
getChatHmId
());
}
}
if
(
CollectionUtils
.
isEmpty
(
l
ist
))
{
if
(
CollectionUtils
.
isEmpty
(
relationL
ist
))
{
return
new
Page
<
GroupChatDTO
>();
return
new
Page
<
GroupChatDTO
>();
}
}
logger
.
info
(
"活码页查询群列表{},关联群数={}"
,
qdto
.
getChatHmId
(),
l
ist
.
size
());
logger
.
info
(
"活码页查询群列表{},关联群数={}"
,
qdto
.
getChatHmId
(),
relationL
ist
.
size
());
List
<
Long
>
groupChatIdList
=
l
ist
.
stream
().
map
(
dto
->
dto
.
getGroupChatId
()).
collect
(
Collectors
.
toList
());
List
<
Long
>
groupChatIdList
=
relationL
ist
.
stream
().
map
(
dto
->
dto
.
getGroupChatId
()).
collect
(
Collectors
.
toList
());
qdto
.
setGroupChatIdList
(
groupChatIdList
);
qdto
.
setGroupChatIdList
(
groupChatIdList
);
}
}
qdto
.
setDepartmentIdList
(
this
.
setDepartIdList
(
qdto
.
getWxEnterpriseId
(),
qdto
.
getDepartmentId
()));
qdto
.
setDepartmentIdList
(
this
.
setDepartIdList
(
qdto
.
getWxEnterpriseId
(),
qdto
.
getDepartmentId
()));
...
@@ -267,6 +267,14 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -267,6 +267,14 @@ public class GroupChatServiceImpl implements GroupChatService {
qdto
.
setSearchParams
(
"%"
+
params
+
"%"
);
qdto
.
setSearchParams
(
"%"
+
params
+
"%"
);
}
}
List
<
GroupChatDTO
>
list
=
this
.
groupChatMapper
.
list
(
qdto
);
List
<
GroupChatDTO
>
list
=
this
.
groupChatMapper
.
list
(
qdto
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)
&&
CollectionUtils
.
isNotEmpty
(
relationList
))
{
Map
<
Long
,
Date
>
offMap
=
relationList
.
stream
().
filter
(
dto
->
dto
.
getStatusFlag
()==
2
).
collect
(
Collectors
.
toMap
(
TabGroupChatHmRelation:
:
getGroupChatId
,
TabGroupChatHmRelation:
:
getUpdateTime
,(
k1
,
k2
)->
k1
));
for
(
GroupChatDTO
dto
:
list
)
{
if
(
null
!=
offMap
.
get
(
dto
.
getGroupChatId
()))
{
dto
.
setOffTime
(
offMap
.
get
(
dto
.
getGroupChatId
()));
}
}
}
Page
<
GroupChatDTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
GroupChatDTO
.
class
);
Page
<
GroupChatDTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
GroupChatDTO
.
class
);
return
retPage
;
return
retPage
;
}
}
...
...
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