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
1d8ee783
Commit
1d8ee783
authored
Jan 09, 2024
by
王晓旭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/smart-office-platform
parents
7d665069
24b159bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
20 deletions
+25
-20
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
.../java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
+14
-8
smart-office-manager/src/main/java/com/mortals/xhx/module/metting/service/impl/MettingRecordServiceImpl.java
...module/metting/service/impl/MettingRecordServiceImpl.java
+11
-12
No files found.
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/MeetSwitchTaskImpl.java
View file @
1d8ee783
...
@@ -113,6 +113,8 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
...
@@ -113,6 +113,8 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
//通知设备进行数据更新
//通知设备进行数据更新
long
expire
=
between
*
60
==
0
?
between
*
60
:
60
;
long
expire
=
between
*
60
==
0
?
between
*
60
:
60
;
log
.
info
(
"会议redis 设置过期时间:{}"
,
expire
);
try
{
boolean
setnx
=
cacheService
.
setnx
(
RedisKey
.
KEY_METTING_START_CACHE
,
recordEntity
.
getId
(),
expire
);
boolean
setnx
=
cacheService
.
setnx
(
RedisKey
.
KEY_METTING_START_CACHE
,
recordEntity
.
getId
(),
expire
);
if
(
setnx
)
{
if
(
setnx
)
{
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
...
@@ -122,6 +124,10 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
...
@@ -122,6 +124,10 @@ public class MeetSwitchTaskImpl implements ITaskExcuteService {
log
.
info
(
"preMeetStart send msg :{}"
,
roomDeviceEntity
.
getDeviceCode
());
log
.
info
(
"preMeetStart send msg :{}"
,
roomDeviceEntity
.
getDeviceCode
());
messageFeign
.
downMsg
(
uploadDeviceReq
);
messageFeign
.
downMsg
(
uploadDeviceReq
);
}
}
}
catch
(
Exception
e
){
log
.
error
(
"设置异常"
,
e
);
}
}
}
}
}
...
...
smart-office-manager/src/main/java/com/mortals/xhx/module/metting/service/impl/MettingRecordServiceImpl.java
View file @
1d8ee783
...
@@ -119,7 +119,6 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
...
@@ -119,7 +119,6 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
protected
void
saveBefore
(
MettingRecordEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
saveBefore
(
MettingRecordEntity
entity
,
Context
context
)
throws
AppException
{
super
.
saveBefore
(
entity
,
context
);
super
.
saveBefore
(
entity
,
context
);
checkStartAndEndTime
(
entity
);
checkStartAndEndTime
(
entity
);
Boolean
bool
=
checkExistStartMeetTime
(
entity
);
Boolean
bool
=
checkExistStartMeetTime
(
entity
);
if
(
bool
)
{
if
(
bool
)
{
throw
new
AppException
(
"当前会议室该时段已经存在等待或进行中的会议,请选择其它时间段!"
);
throw
new
AppException
(
"当前会议室该时段已经存在等待或进行中的会议,请选择其它时间段!"
);
...
@@ -134,6 +133,7 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
...
@@ -134,6 +133,7 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
boolean
in
=
DateUtil
.
isIn
(
new
Date
(),
entity
.
getMeetTimeStart
(),
entity
.
getMeetTimeEnd
());
boolean
in
=
DateUtil
.
isIn
(
new
Date
(),
entity
.
getMeetTimeStart
(),
entity
.
getMeetTimeEnd
());
if
(
in
)
{
if
(
in
)
{
entity
.
setMeetStatus
(
MeetStatusEnum
.
进行中
.
getValue
());
entity
.
setMeetStatus
(
MeetStatusEnum
.
进行中
.
getValue
());
}
//发送推送通知
//发送推送通知
RoomDeviceQuery
roomDeviceQuery
=
new
RoomDeviceQuery
();
RoomDeviceQuery
roomDeviceQuery
=
new
RoomDeviceQuery
();
roomDeviceQuery
.
setRoomId
(
entity
.
getRoomId
());
roomDeviceQuery
.
setRoomId
(
entity
.
getRoomId
());
...
@@ -146,7 +146,6 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
...
@@ -146,7 +146,6 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
messageFeign
.
downMsg
(
uploadDeviceReq
);
messageFeign
.
downMsg
(
uploadDeviceReq
);
}
}
}
}
}
@Override
@Override
...
...
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