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
a36cc7bf
Commit
a36cc7bf
authored
Mar 03, 2025
by
wujipeng
Browse files
定时任务-添加员工请假时长
parent
2218d8f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/task/DingTask.java
View file @
a36cc7bf
...
...
@@ -94,7 +94,9 @@ public class DingTask {
List
<
DingAttendanceEntity
>
dingAttendanceEntities
=
BeanUtil
.
copyToList
(
checkInRecord
,
DingAttendanceEntity
.
class
);
for
(
DingAttendanceEntity
dingAttendanceEntity
:
dingAttendanceEntities
)
{
DingUserVO
employeeDetail
=
dingEmployeeController
.
getEmployeeDetail
(
dingAttendanceEntity
.
getUserId
());
Long
lengthOfLeave
=
dingAttendanceController
.
getLeaveDuration
(
dingAttendanceEntity
.
getUserId
(),
startAndEndOfDay
[
0
],
startAndEndOfDay
[
1
]);
dingAttendanceEntity
.
setName
(
employeeDetail
.
getName
());
dingAttendanceEntity
.
setLengthOfLeave
(
lengthOfLeave
);
}
dingAttendanceService
.
saveOrUpdateBatch
(
dingAttendanceEntities
);
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