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
d96c927e
Commit
d96c927e
authored
Dec 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
ee334fe6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
GroupChatHmController.java
...ban/manage/web/controller/chat/GroupChatHmController.java
+3
-3
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatHmController.java
View file @
d96c927e
...
...
@@ -131,6 +131,7 @@ public class GroupChatHmController {
if
(!
oldResp
.
isSuccess
())
{
return
RestResponse
.
failure
(
oldResp
.
getCode
(),
oldResp
.
getMessage
());
}
List
<
Long
>
oldIdList
=
this
.
groupChatHmApiService
.
listHmGroupChatId
(
loginUser
.
getWxEnterpriseId
(),
dto
.
getChatHmId
()).
getResult
()
;
GroupChatHmDTO
oldDTO
=
oldResp
.
getResult
();
dto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
dto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
...
...
@@ -139,7 +140,7 @@ public class GroupChatHmController {
dto
.
setWxConfigId
(
oldDTO
.
getWxConfigId
());
ServiceResponse
<
GroupChatHmDTO
>
resp
=
this
.
groupChatHmApiService
.
save
(
dto
);
if
(
resp
.
isSuccess
())
{
String
logContent
=
this
.
getUpdateLog
(
oldDTO
,
dto
);
String
logContent
=
this
.
getUpdateLog
(
oldDTO
,
dto
,
oldIdList
);
if
(
StringUtils
.
isNotBlank
(
logContent
))
{
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
...
...
@@ -152,7 +153,7 @@ public class GroupChatHmController {
return
RestResponse
.
failure
(
"1"
,
resp
.
getMessage
());
}
private
String
getUpdateLog
(
GroupChatHmDTO
oldDTO
,
GroupChatHmDTO
newDTO
)
{
private
String
getUpdateLog
(
GroupChatHmDTO
oldDTO
,
GroupChatHmDTO
newDTO
,
List
<
Long
>
oldIdList
)
{
String
wxEnterpriseId
=
newDTO
.
getWxEnterpriseId
();
String
enterpriseId
=
newDTO
.
getEnterpriseId
();
StringBuilder
content
=
new
StringBuilder
();
...
...
@@ -167,7 +168,6 @@ public class GroupChatHmController {
String
o
=
null
;
List
<
Long
>
newIdList
=
newDTO
.
getChatIdList
()
;
List
<
Long
>
oldIdList
=
this
.
groupChatHmApiService
.
listHmGroupChatId
(
wxEnterpriseId
,
oldDTO
.
getChatHmId
()).
getResult
()
;
Sets
.
SetView
<
Long
>
delView
=
Sets
.
difference
(
Sets
.
newHashSet
(
oldIdList
),
Sets
.
newHashSet
(
newIdList
));
List
<
Long
>
delIdList
=
delView
.
stream
().
collect
(
Collectors
.
toList
());
...
...
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