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
1b758b5a
Commit
1b758b5a
authored
Jan 02, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通知去重复
parent
5b709c01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
smart-office-manager/src/main/java/com/mortals/xhx/module/metting/service/impl/MettingRecordServiceImpl.java
...module/metting/service/impl/MettingRecordServiceImpl.java
+25
-0
No files found.
smart-office-manager/src/main/java/com/mortals/xhx/module/metting/service/impl/MettingRecordServiceImpl.java
View file @
1b758b5a
...
@@ -147,4 +147,29 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
...
@@ -147,4 +147,29 @@ public class MettingRecordServiceImpl extends AbstractCRUDServiceImpl<MettingRec
}
}
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
}
}
@Override
protected
void
saveBefore
(
MettingRecordEntity
entity
,
Context
context
)
throws
AppException
{
super
.
saveBefore
(
entity
,
context
);
//判断 当前时间是否在开始与结束之间
boolean
in
=
DateUtil
.
isIn
(
new
Date
(),
entity
.
getMeetTimeStart
(),
entity
.
getMeetTimeEnd
());
if
(
in
){
entity
.
setMeetStatus
(
MeetStatusEnum
.
进行中
.
getValue
());
//发送推送通知
RoomDeviceQuery
roomDeviceQuery
=
new
RoomDeviceQuery
();
roomDeviceQuery
.
setRoomId
(
entity
.
getRoomId
());
RoomDeviceEntity
roomDeviceEntity
=
roomDeviceService
.
selectOne
(
roomDeviceQuery
);
if
(!
ObjectUtils
.
isEmpty
(
roomDeviceEntity
)){
UploadDeviceReq
uploadDeviceReq
=
new
UploadDeviceReq
();
uploadDeviceReq
.
setDeviceCodeList
(
Arrays
.
asList
(
roomDeviceEntity
.
getDeviceCode
()));
uploadDeviceReq
.
setAction
(
"preMeetStart"
);
uploadDeviceReq
.
setContent
(
JSON
.
toJSONString
(
entity
));
log
.
info
(
"preMeetStart send msg :{}"
,
entity
.
getDeviceCode
());
messageFeign
.
downMsg
(
uploadDeviceReq
);
}
}
}
}
}
\ No newline at end of file
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