Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart-office-platform
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
赵啸非
smart-office-platform
Commits
bf32f372
Commit
bf32f372
authored
Jan 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通知去重复
parent
18d7aca1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
.../java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
+1
-1
smart-office-manager/src/main/java/com/mortals/xhx/module/metting/service/impl/MettingRecordServiceImpl.java
...module/metting/service/impl/MettingRecordServiceImpl.java
+3
-2
No files found.
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
View file @
bf32f372
...
...
@@ -115,7 +115,7 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
}
//通知设备进行数据更新
boolean
setnx
=
cacheService
.
setnx
(
RedisKey
.
KEY_METTING_START_CACHE
,
recordEntity
.
getId
(),
between
*
60
);
boolean
setnx
=
cacheService
.
setnx
(
RedisKey
.
KEY_METTING_START_CACHE
,
recordEntity
.
getId
(),
60
);
if
(
setnx
)
{
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
uploadDeviceReq
.
setDeviceCodeList
(
Arrays
.
asList
(
roomDeviceEntity
.
getDeviceCode
()));
...
...
smart-office-manager/src/main/java/com/mortals/xhx/module/metting/service/impl/MettingRecordServiceImpl.java
View file @
bf32f372
...
...
@@ -211,10 +211,11 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
RoomEntity
roomEntity
=
roomService
.
get
(
entity
.
getRoomId
(),
context
);
if
(!
ObjectUtils
.
isEmpty
(
roomEntity
))
{
uploadDeviceReq
.
setDeviceCodeList
(
roomDeviceService
.
find
(
new
RoomDeviceQuery
().
roomId
(
roomEntity
.
getId
())).
stream
().
map
(
i
->
i
.
getDeviceCode
()).
collect
(
Collectors
.
toList
()));
List
<
String
>
deviceList
=
roomDeviceService
.
find
(
new
RoomDeviceQuery
().
roomId
(
roomEntity
.
getId
())).
stream
().
map
(
i
->
i
.
getDeviceCode
()).
collect
(
Collectors
.
toList
());
uploadDeviceReq
.
setDeviceCodeList
(
deviceList
);
uploadDeviceReq
.
setAction
(
"refreshMetting"
);
Rest
<
String
>
rest
=
messageFeign
.
downMsg
(
uploadDeviceReq
);
log
.
info
(
"删除会议记录后发送消息
:{}"
,
JSON
.
toJSONString
(
re
st
));
log
.
info
(
"删除会议记录后发送消息
deviceCode:{}"
,
JSON
.
toJSONString
(
deviceLi
st
));
}
});
...
...
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