Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
4760aa01
Commit
4760aa01
authored
Mar 03, 2025
by
wujipeng
Browse files
优化
parent
c48290a8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/task/DingTask.java
View file @
4760aa01
...
@@ -118,6 +118,7 @@ public class DingTask {
...
@@ -118,6 +118,7 @@ public class DingTask {
@Scheduled
(
cron
=
"0 0 10 * * *"
)
@Scheduled
(
cron
=
"0 0 10 * * *"
)
// @Scheduled(fixedRate = 20000)
// @Scheduled(fixedRate = 20000)
public
void
collectAttendance
()
{
public
void
collectAttendance
()
{
log
.
info
(
"同步考勤汇总数据开始"
);
// 获取当前日期
// 获取当前日期
Date
currentDate
=
new
Date
();
Date
currentDate
=
new
Date
();
LocalDate
localDate
=
currentDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
();
LocalDate
localDate
=
currentDate
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
();
...
@@ -166,6 +167,7 @@ public class DingTask {
...
@@ -166,6 +167,7 @@ public class DingTask {
}
}
dingAttendanceTotalService
.
saveOrUpdateBatch
(
dingAttendanceTotalList
);
dingAttendanceTotalService
.
saveOrUpdateBatch
(
dingAttendanceTotalList
);
log
.
info
(
"同步考勤汇总数据结束"
);
}
}
}
}
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