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
d47ea588
Commit
d47ea588
authored
Aug 09, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考勤汇总默认前一天数据
parent
62db9c98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/AttendanceSummaryTaskImpl.java
...om/mortals/xhx/daemon/task/AttendanceSummaryTaskImpl.java
+2
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceStatController.java
...s/xhx/module/attendance/web/AttendanceStatController.java
+2
-2
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/AttendanceSummaryTaskImpl.java
View file @
d47ea588
...
...
@@ -31,9 +31,9 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService {
if
(
StringUtils
.
isNotEmpty
(
verify
)&&
verify
.
equals
(
"true"
)){
Thread
.
sleep
(
600
*
1000
);
}
cacheService
.
set
nx
(
SUMMARY_TASK_KEY
,
"true"
,
3
600
);
cacheService
.
set
(
SUMMARY_TASK_KEY
,
"true"
,
600
);
attendanceStatService
.
doAttendanceSummary
(
null
);
cacheService
.
set
nx
(
SUMMARY_TASK_KEY
,
"false"
,
60
);
cacheService
.
set
(
SUMMARY_TASK_KEY
,
"false"
,
60
);
}
catch
(
Exception
e
){
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceStatController.java
View file @
d47ea588
...
...
@@ -96,7 +96,7 @@ public class AttendanceStatController extends BaseCRUDJsonBodyMappingController<
executorService
.
submit
(
new
Runnable
()
{
@Override
public
void
run
()
{
cacheService
.
set
nx
(
SUMMARY_TASK_KEY
,
"true"
,
3
600
);
cacheService
.
set
(
SUMMARY_TASK_KEY
,
"true"
,
600
);
if
(
StringUtils
.
isNotEmpty
(
query
.
getSummaryTimeStart
())
&&
StringUtils
.
isNotEmpty
(
query
.
getSummaryTimeEnd
())){
List
<
String
>
dateList
=
getDatesBetween
(
query
.
getSummaryTimeStart
(),
query
.
getSummaryTimeEnd
());
for
(
String
day:
dateList
){
...
...
@@ -108,7 +108,7 @@ public class AttendanceStatController extends BaseCRUDJsonBodyMappingController<
}
}
});
cacheService
.
set
nx
(
SUMMARY_TASK_KEY
,
"false"
,
60
);
cacheService
.
set
(
SUMMARY_TASK_KEY
,
"false"
,
60
);
model
.
put
(
"message_info"
,
"开始执行考勤汇总,请稍后查看"
);
}
catch
(
Exception
var9
)
{
code
=
-
1
;
...
...
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