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
4e4c7af3
Commit
4e4c7af3
authored
Jan 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通知去重复
parent
9b4a5b3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
...a/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
+18
-13
No files found.
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
View file @
4e4c7af3
...
@@ -111,21 +111,26 @@ public class SyncMeetStatusTaskImpl implements ITaskExcuteService {
...
@@ -111,21 +111,26 @@ public class SyncMeetStatusTaskImpl implements ITaskExcuteService {
//判断基础是否设置关闭切换通知,有则推送
//判断基础是否设置关闭切换通知,有则推送
if
(!
ObjectUtils
.
isEmpty
(
basicSetEntity
.
getMeetEnd
())
&&
basicSetEntity
.
getMeetEnd
()
==
YesNoEnum
.
YES
.
getValue
())
{
if
(!
ObjectUtils
.
isEmpty
(
basicSetEntity
.
getMeetEnd
())
&&
basicSetEntity
.
getMeetEnd
()
==
YesNoEnum
.
YES
.
getValue
())
{
//结束通知 通过redis 去重复
//结束通知 通过redis 去重复
long
sub
=
DateUtil
.
between
(
pendRecordEntity
.
getMeetTimeStart
(),
pendRecordEntity
.
getMeetTimeEnd
(),
DateUnit
.
SECOND
,
true
);
RoomDeviceQuery
roomDeviceQuery
=
new
RoomDeviceQuery
();
roomDeviceQuery
.
setRoomId
(
pendRecordEntity
.
getRoomId
());
RoomDeviceEntity
roomDeviceEntity
=
roomDeviceService
.
selectOne
(
roomDeviceQuery
);
if
(
ObjectUtils
.
isEmpty
(
roomDeviceEntity
))
return
;
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
uploadDeviceReq
.
setDeviceCodeList
(
Arrays
.
asList
(
roomDeviceEntity
.
getDeviceCode
()));
uploadDeviceReq
.
setAction
(
"postMeet"
);
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);
boolean setnx = cacheService.setnx(RedisKey.KEY_METTING_END_CACHE, pendRecordEntity.getId(), sub);
if (setnx) {
if (setnx) {
RoomDeviceQuery
roomDeviceQuery
=
new
RoomDeviceQuery
();
roomDeviceQuery
.
setRoomId
(
pendRecordEntity
.
getRoomId
());
}else{
RoomDeviceEntity
roomDeviceEntity
=
roomDeviceService
.
selectOne
(
roomDeviceQuery
);
if
(
ObjectUtils
.
isEmpty
(
roomDeviceEntity
))
return
;
}*/
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
uploadDeviceReq
.
setDeviceCodeList
(
Arrays
.
asList
(
roomDeviceEntity
.
getDeviceCode
()));
uploadDeviceReq
.
setAction
(
"postMeet"
);
Rest
<
String
>
rest
=
messageFeign
.
downMsg
(
uploadDeviceReq
);
log
.
info
(
"推送自动结束 postMeet :{}"
,
JSON
.
toJSONString
(
Arrays
.
asList
(
roomDeviceEntity
.
getDeviceCode
())));
}
}
}
}
}
...
...
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