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
cb5e4987
Commit
cb5e4987
authored
Jan 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通知去重复
parent
4b7ce947
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
.../java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
+15
-9
No files found.
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
View file @
cb5e4987
...
@@ -41,7 +41,7 @@ import java.util.stream.Collectors;
...
@@ -41,7 +41,7 @@ import java.util.stream.Collectors;
* 会议室切换状态
* 会议室切换状态
*/
*/
@Slf4j
@Slf4j
@Service
(
"MeetSwitchTask
Task
"
)
@Service
(
"MeetSwitchTask"
)
public
class
MeetSwitchTaskImpl
implements
ITaskExcuteService
{
public
class
MeetSwitchTaskImpl
implements
ITaskExcuteService
{
@Autowired
@Autowired
...
@@ -113,15 +113,21 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
...
@@ -113,15 +113,21 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
//通知设备进行数据更新
//通知设备进行数据更新
long
expire
=
between
*
60
==
0
?
between
*
60
:
60
;
long
expire
=
between
*
60
==
0
?
between
*
60
:
60
;
boolean
setnx
=
cacheService
.
setnx
(
RedisKey
.
KEY_METTING_START_CACHE
,
recordEntity
.
getId
(),
expire
);
log
.
info
(
"会议redis 设置过期时间:{}"
,
expire
);
if
(
setnx
)
{
try
{
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
boolean
setnx
=
cacheService
.
setnx
(
RedisKey
.
KEY_METTING_START_CACHE
,
recordEntity
.
getId
(),
expire
);
uploadDeviceReq
.
setDeviceCodeList
(
Arrays
.
asList
(
roomDeviceEntity
.
getDeviceCode
()));
if
(
setnx
)
{
uploadDeviceReq
.
setAction
(
"preMeetStart"
);
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
uploadDeviceReq
.
setContent
(
JSON
.
toJSONString
(
recordEntity
));
uploadDeviceReq
.
setDeviceCodeList
(
Arrays
.
asList
(
roomDeviceEntity
.
getDeviceCode
()));
log
.
info
(
"preMeetStart send msg :{}"
,
roomDeviceEntity
.
getDeviceCode
());
uploadDeviceReq
.
setAction
(
"preMeetStart"
);
messageFeign
.
downMsg
(
uploadDeviceReq
);
uploadDeviceReq
.
setContent
(
JSON
.
toJSONString
(
recordEntity
));
log
.
info
(
"preMeetStart send msg :{}"
,
roomDeviceEntity
.
getDeviceCode
());
messageFeign
.
downMsg
(
uploadDeviceReq
);
}
}
catch
(
Exception
e
){
log
.
error
(
"设置异常"
,
e
);
}
}
}
}
}
}
...
...
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