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
26269d98
Commit
26269d98
authored
Jan 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通知去重复
parent
804d7b43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
...a/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
+7
-8
No files found.
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
View file @
26269d98
...
...
@@ -85,10 +85,17 @@ public class SyncMeetStatusTaskImpl implements ITaskExcuteService {
RoomEntity
roomEntity
=
roomService
.
get
(
recordEntity
.
getRoomId
(),
null
);
if
(!
ObjectUtils
.
isEmpty
(
roomEntity
))
{
List
<
String
>
deviceList
=
roomDeviceService
.
find
(
new
RoomDeviceQuery
().
roomId
(
roomEntity
.
getId
())).
stream
().
map
(
i
->
i
.
getDeviceCode
()).
collect
(
Collectors
.
toList
());
uploadDeviceReq
.
setDeviceCodeList
(
deviceList
);
uploadDeviceReq
.
setAction
(
"refreshMetting"
);
messageFeign
.
downMsg
(
uploadDeviceReq
);
uploadDeviceReq
=
new
UploadDeviceReq
();
uploadDeviceReq
.
setDeviceCodeList
(
deviceList
);
uploadDeviceReq
.
setAction
(
"preMeetStart"
);
uploadDeviceReq
.
setContent
(
JSON
.
toJSONString
(
recordEntity
));
messageFeign
.
downMsg
(
uploadDeviceReq
);
log
.
info
(
"推送等待--》进行中:{}"
,
JSON
.
toJSONString
(
deviceList
));
}
}
...
...
@@ -123,14 +130,6 @@ public class SyncMeetStatusTaskImpl implements ITaskExcuteService {
Rest
<
String
>
rest
=
messageFeign
.
downMsg
(
uploadDeviceReq
);
log
.
info
(
"推送自动结束 postMeet :{}"
,
JSON
.
toJSONString
(
Arrays
.
asList
(
roomDeviceEntity
.
getDeviceCode
())));
/* long sub = DateUtil.between(pendRecordEntity.getMeetTimeStart(), pendRecordEntity.getMeetTimeEnd(), DateUnit.SECOND, true);
boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_END_CACHE, pendRecordEntity.getId(), sub);
if (setnx) {
}else{
}*/
}
}
...
...
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