Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
a2059d04
Commit
a2059d04
authored
Nov 13, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据昵称搜索会话列表
parent
48a5b587
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysIMRecordServiceImpl.java
...n/java/com/wwdz/ch/admin/impl/SysIMRecordServiceImpl.java
+5
-0
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysIMRecordServiceImpl.java
View file @
a2059d04
...
@@ -22,8 +22,10 @@ import org.slf4j.Logger;
...
@@ -22,8 +22,10 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -50,6 +52,9 @@ public class SysIMRecordServiceImpl implements SysIMRecordService {
...
@@ -50,6 +52,9 @@ public class SysIMRecordServiceImpl implements SysIMRecordService {
if
(
StringUtils
.
hasLength
(
dto
.
getFromAccountName
()))
{
if
(
StringUtils
.
hasLength
(
dto
.
getFromAccountName
()))
{
//根据用户名称查询id
//根据用户名称查询id
List
<
User
>
userList
=
userDao
.
findByNickName
(
dto
.
getFromAccountName
());
List
<
User
>
userList
=
userDao
.
findByNickName
(
dto
.
getFromAccountName
());
if
(
CollectionUtils
.
isEmpty
(
userList
))
{
return
Result
.
success
();
}
List
<
Long
>
fromAccountIdList
=
userList
.
stream
().
map
(
User:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Long
>
fromAccountIdList
=
userList
.
stream
().
map
(
User:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
String
>
fromAccountList
=
fromAccountIdList
.
stream
().
map
(
String:
:
valueOf
).
collect
(
Collectors
.
toList
());
List
<
String
>
fromAccountList
=
fromAccountIdList
.
stream
().
map
(
String:
:
valueOf
).
collect
(
Collectors
.
toList
());
dto
.
setFromAccountList
(
fromAccountList
);
dto
.
setFromAccountList
(
fromAccountList
);
...
...
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