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
e94d75c2
Commit
e94d75c2
authored
Jan 04, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改通知去重复
parent
c817ff9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
...a/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
+5
-6
No files found.
smart-office-manager/src/main/java/com/mortals/xhx/daemon/task/SyncMeetStatusTaskImpl.java
View file @
e94d75c2
...
...
@@ -61,8 +61,6 @@ public class SyncMeetStatusTaskImpl implements ITaskExcuteService {
mettingRecordQuery
.
setMeetStatus
(
MeetStatusEnum
.
等待中
.
getValue
());
List
<
MettingRecordEntity
>
recordEntities
=
mettingRecordService
.
find
(
mettingRecordQuery
);
for
(
MettingRecordEntity
recordEntity
:
recordEntities
)
{
if
(
new
Date
().
getTime
()
>
recordEntity
.
getMeetTimeStart
().
getTime
())
{
//更新状态
recordEntity
.
setMeetStatus
(
MeetStatusEnum
.
进行中
.
getValue
());
...
...
@@ -73,18 +71,19 @@ public class SyncMeetStatusTaskImpl implements ITaskExcuteService {
}
mettingRecordQuery
=
new
MettingRecordQuery
();
//mettingRecordQuery.setFinishMethod(FinishMethodEnum.自动结束.getValue());
mettingRecordQuery
.
setMeetStatus
(
MeetStatusEnum
.
进行中
.
getValue
());
List
<
MettingRecordEntity
>
pendRecordEntities
=
mettingRecordService
.
find
(
mettingRecordQuery
);
for
(
MettingRecordEntity
pendRecordEntity
:
pendRecordEntities
)
{
boolean
in
=
DateUtil
.
isIn
(
new
Date
(),
pendRecordEntity
.
getMeetTimeStart
(),
pendRecordEntity
.
getMeetTimeEnd
());
if
(!
in
)
{
int
compare
=
DateUtil
.
compare
(
new
Date
(),
pendRecordEntity
.
getMeetTimeEnd
());
if
(
compare
>
0
){
/* boolean in = DateUtil.isIn(new Date(), pendRecordEntity.getMeetTimeStart(), pendRecordEntity.getMeetTimeEnd());
if (!in) {*/
//更新状态
pendRecordEntity
.
setMeetStatus
(
MeetStatusEnum
.
已结束
.
getValue
());
pendRecordEntity
.
setFinishMethod
(
FinishMethodEnum
.
自动结束
.
getValue
());
pendRecordEntity
.
setUpdateTime
(
new
Date
());
pendRecordEntity
.
setUpdateUserId
(
1L
);
mettingRecordService
.
update
(
pendRecordEntity
);
mettingRecordService
.
getDao
().
update
(
pendRecordEntity
);
//判断基础是否设置关闭切换通知,有则推送
if
(!
ObjectUtils
.
isEmpty
(
basicSetEntity
.
getMeetEnd
())
&&
basicSetEntity
.
getMeetEnd
()
==
YesNoEnum
.
YES
.
getValue
())
{
//结束通知 通过redis 去重复
...
...
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