Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-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
赵啸非
attendance-performance-platform
Commits
294bdfc7
Commit
294bdfc7
authored
Oct 11, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理代码
parent
122588ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
...odule/attendance/service/work/FixWorkOtherAttendance.java
+12
-10
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
View file @
294bdfc7
...
@@ -465,16 +465,18 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
...
@@ -465,16 +465,18 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
private
void
deleteErrorRecordCache
(
Long
staffId
,
Context
context
)
{
private
void
deleteErrorRecordCache
(
Long
staffId
,
Context
context
)
{
//删除当前员工当日未处理的异常后,重新添加
//删除当前员工当日未处理的异常后,重新添加
List
<
AttendanceRecordErrorEntity
>
attendanceRecordErrorEntities
=
commonData
.
getErrorGroupStaffMap
().
get
(
staffId
);
List
<
AttendanceRecordErrorEntity
>
attendanceRecordErrorEntities
=
commonData
.
getErrorGroupStaffMap
().
get
(
staffId
);
Long
[]
errorIds
=
attendanceRecordErrorEntities
.
stream
()
if
(!
ObjectUtils
.
isEmpty
(
attendanceRecordErrorEntities
))
{
.
filter
(
f
->
YesNoEnum
.
NO
.
getValue
()
==
f
.
getProcessStatus
())
Long
[]
errorIds
=
attendanceRecordErrorEntities
.
stream
()
.
map
(
i
->
i
.
getId
()).
toArray
(
Long
[]::
new
);
.
filter
(
f
->
YesNoEnum
.
NO
.
getValue
()
==
f
.
getProcessStatus
())
if
(!
ObjectUtils
.
isEmpty
(
errorIds
))
{
.
map
(
i
->
i
.
getId
()).
toArray
(
Long
[]::
new
);
//log.info("删除 {} 人员:{} 异常记录:{}",dateStr,staffId, JSON.toJSONString(attendanceRecordErrorEntities));
if
(!
ObjectUtils
.
isEmpty
(
errorIds
))
{
StopWatch
stopWatch
=
new
StopWatch
();
//log.info("删除 {} 人员:{} 异常记录:{}",dateStr,staffId, JSON.toJSONString(attendanceRecordErrorEntities));
stopWatch
.
start
(
"删除异常记录耗时"
);
StopWatch
stopWatch
=
new
StopWatch
();
errorService
.
remove
(
errorIds
,
context
);
stopWatch
.
start
(
"删除异常记录耗时"
);
stopWatch
.
stop
();
errorService
.
remove
(
errorIds
,
context
);
log
.
info
(
"删除异常记录耗时:{}ms"
,
stopWatch
.
getLastTaskTimeMillis
());
stopWatch
.
stop
();
log
.
info
(
"删除异常记录耗时:{}ms"
,
stopWatch
.
getLastTaskTimeMillis
());
}
}
}
}
}
...
...
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