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
122588ea
Commit
122588ea
authored
Oct 11, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理代码
parent
27449693
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
...odule/attendance/service/work/FixWorkOtherAttendance.java
+10
-6
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
View file @
122588ea
...
...
@@ -290,11 +290,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
}
}
//生成异常记录
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
(
"生成异常记录耗时"
);
//
StopWatch stopWatch = new StopWatch();
//
stopWatch.start("生成异常记录耗时");
genErrorAttendRecord
(
commonData
.
getContext
(),
commonData
.
getDateStr
(),
commonData
.
getAttendanceRecordEntity
(),
commonData
.
getDetailEntityList
());
stopWatch
.
stop
();
log
.
info
(
"生成异常记录耗时:{}ms"
,
stopWatch
.
getLastTaskTimeMillis
());
//
stopWatch.stop();
//
log.info("生成异常记录耗时:{}ms", stopWatch.getLastTaskTimeMillis());
}
/**
...
...
@@ -441,7 +441,7 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
for
(
AttendanceRecordErrorEntity
errorEntity
:
errorEntityList
)
{
//查看是否存在相同的异常记录,如果存在 则不添加 todo 非数据库查询方式判断优化
List
<
AttendanceRecordErrorEntity
>
attendanceRecordErrorEntities
=
commonData
.
getErrorGroupStaffMap
().
get
(
attendanceRecordEntity
.
getStaffId
());
checkAndSaveCache
(
context
,
attendanceRecordErrorEntities
,
errorEntity
);
checkAndSaveCache
(
context
,
attendanceRecordErrorEntities
,
errorEntity
);
// checkAndSave(context, errorEntity);
}
}
...
...
@@ -470,7 +470,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
.
map
(
i
->
i
.
getId
()).
toArray
(
Long
[]::
new
);
if
(!
ObjectUtils
.
isEmpty
(
errorIds
))
{
//log.info("删除 {} 人员:{} 异常记录:{}",dateStr,staffId, JSON.toJSONString(attendanceRecordErrorEntities));
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
(
"删除异常记录耗时"
);
errorService
.
remove
(
errorIds
,
context
);
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