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
1
Merge Requests
1
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
ee334fe6
Commit
ee334fe6
authored
Dec 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
非空判断
parent
9a0d154a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
GroupChatApiServiceImpl.java
...ervice/service/out/impl/chat/GroupChatApiServiceImpl.java
+7
-5
TabHaobanStaffClerkRelationMapper.xml
...in/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
+1
-1
GroupChatHmController.java
...ban/manage/web/controller/chat/GroupChatHmController.java
+2
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/chat/GroupChatApiServiceImpl.java
View file @
ee334fe6
...
@@ -96,11 +96,13 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
...
@@ -96,11 +96,13 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
if
(
needClerkReltaion
)
{
if
(
needClerkReltaion
)
{
List
<
String
>
staffIdList
=
dtoList
.
stream
().
filter
(
dto
->
StringUtils
.
isNotBlank
(
dto
.
getStaffId
()))
List
<
String
>
staffIdList
=
dtoList
.
stream
().
filter
(
dto
->
StringUtils
.
isNotBlank
(
dto
.
getStaffId
()))
.
map
(
dto
->
dto
.
getStaffId
()).
collect
(
Collectors
.
toList
());
.
map
(
dto
->
dto
.
getStaffId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
relationIdList
=
this
.
staffClerkRelationService
if
(
CollectionUtils
.
isNotEmpty
(
staffIdList
))
{
.
listRelationsStaffId
(
new
HashSet
<>(
staffIdList
));
List
<
String
>
relationIdList
=
this
.
staffClerkRelationService
dtoList
.
forEach
(
one
->
{
.
listRelationsStaffId
(
new
HashSet
<>(
staffIdList
));
one
.
setClerkRelationFlag
(
relationIdList
.
contains
(
one
.
getStaffId
())
?
1
:
0
);
dtoList
.
forEach
(
one
->
{
});
one
.
setClerkRelationFlag
(
relationIdList
.
contains
(
one
.
getStaffId
())
?
1
:
0
);
});
}
}
}
// 原群主
// 原群主
if
(
qdto
.
getStatus
()
==
2
)
{
if
(
qdto
.
getStatus
()
==
2
)
{
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanStaffClerkRelationMapper.xml
View file @
ee334fe6
...
@@ -255,7 +255,7 @@
...
@@ -255,7 +255,7 @@
<foreach
collection=
"staffIdList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
<foreach
collection=
"staffIdList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
and a.status_flag = 1 and b.status_flag = 1 group by a.staff_id
;
and a.status_flag = 1 and b.status_flag = 1 group by a.staff_id
</select>
</select>
<select
id=
"listMemberStaffRelNew"
resultType=
"com.gic.haoban.manage.service.entity.ext.MemberStaffRelExtDO"
>
<select
id=
"listMemberStaffRelNew"
resultType=
"com.gic.haoban.manage.service.entity.ext.MemberStaffRelExtDO"
>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatHmController.java
View file @
ee334fe6
...
@@ -176,6 +176,7 @@ public class GroupChatHmController {
...
@@ -176,6 +176,7 @@ public class GroupChatHmController {
String
chats
=
this
.
getGroupChatName
(
wxEnterpriseId
,
delIdList
)
;
String
chats
=
this
.
getGroupChatName
(
wxEnterpriseId
,
delIdList
)
;
if
(
StringUtils
.
isNotBlank
(
chats
))
{
if
(
StringUtils
.
isNotBlank
(
chats
))
{
o
=
"删除可加入群聊【"
+
chats
+
"】"
;
o
=
"删除可加入群聊【"
+
chats
+
"】"
;
content
.
append
(
o
);
}
}
}
}
String
p
=
null
;
String
p
=
null
;
...
@@ -186,6 +187,7 @@ public class GroupChatHmController {
...
@@ -186,6 +187,7 @@ public class GroupChatHmController {
String
chats
=
this
.
getGroupChatName
(
wxEnterpriseId
,
newIdList
)
;
String
chats
=
this
.
getGroupChatName
(
wxEnterpriseId
,
newIdList
)
;
if
(
StringUtils
.
isNotBlank
(
chats
))
{
if
(
StringUtils
.
isNotBlank
(
chats
))
{
p
=
"新增可加入群聊【"
+
chats
+
"】"
;
p
=
"新增可加入群聊【"
+
chats
+
"】"
;
content
.
append
(
p
);
}
}
}
}
...
...
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