Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
9c5b5dda
Commit
9c5b5dda
authored
Dec 02, 2020
by
ilal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into develop
parents
34416f90
cf31c210
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
17 deletions
+23
-17
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
+10
-7
src/main/java/cn/timer/api/controller/kqgl/atttimer/LastMonthtimingExport.java
+10
-7
src/main/java/cn/timer/api/controller/kqgl/atttimer/RealTimeUpdate.java
+2
-2
src/main/resources/mapping/kqmk/KqglAssoMonthPunchSummaryMapper.xml
+1
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/atttimer/AttendanceTaskTiming.java
View file @
9c5b5dda
...
...
@@ -101,7 +101,7 @@ public class AttendanceTaskTiming{
//typeid:1-员工 2-考勤组
// @Scheduled(cron = "0 */5 * * * ?")
// @Scheduled(cron = "0
18 15
* * ?")
// @Scheduled(cron = "0
32 14
* * ?")
@Scheduled
(
cron
=
"0 0 8,12,16,20 * * ?"
)
//每天上午8、12点,下午16点,20点 执行
public
void
AttendanceTask
()
throws
ParseException
{
...
...
@@ -909,13 +909,16 @@ public class AttendanceTaskTiming{
summary
.
setDay29
(
noticesArray
[
28
]);
summary
.
setDay30
(
noticesArray
[
29
]);
summary
.
setDay31
(
noticesArray
[
30
]);
summary
.
setId
(
summaryid
);
if
(
summaryid
>
0
)
{
summary
.
setId
(
summaryid
);
summary
.
updateById
();
}
else
{
summary
.
insert
();
}
summary
.
insertOrUpdate
();
// if(summaryid > 0) {
// summary.setId(summaryid);
// summary.updateById();
// }else {
// summary.insert();
// }
}
...
...
src/main/java/cn/timer/api/controller/kqgl/atttimer/LastMonthtimingExport.java
View file @
9c5b5dda
...
...
@@ -93,7 +93,7 @@ public class LastMonthtimingExport {
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
// @Scheduled(cron = "0
31 18
* * ?")
// @Scheduled(cron = "0
22 14
* * ?")
@Scheduled
(
cron
=
"0 0 4,20 * * ?"
)
//每天上午4点,下午20点 执行
public
void
LastMonthtimingAttendanceTask
()
throws
ParseException
{
...
...
@@ -910,13 +910,16 @@ public class LastMonthtimingExport {
summary
.
setDay29
(
noticesArray
[
28
]);
summary
.
setDay30
(
noticesArray
[
29
]);
summary
.
setDay31
(
noticesArray
[
30
]);
summary
.
setId
(
summaryid
);
if
(
summaryid
>
0
)
{
summary
.
setId
(
summaryid
);
summary
.
updateById
();
}
else
{
summary
.
insert
();
}
summary
.
insertOrUpdate
();
// if(summaryid > 0) {
// summary.setId(summaryid);
// summary.updateById();
// }else {
// summary.insert();
// }
}
...
...
src/main/java/cn/timer/api/controller/kqgl/atttimer/RealTimeUpdate.java
View file @
9c5b5dda
...
...
@@ -885,9 +885,9 @@ public class RealTimeUpdate{
summary
.
setDay30
(
noticesArray
[
29
]);
summary
.
setDay31
(
noticesArray
[
30
]);
if
(
summaryid
>
0
)
{
//
if(summaryid > 0) {
summary
.
setId
(
summaryid
);
}
//
}
summary
.
insertOrUpdate
();
}
...
...
src/main/resources/mapping/kqmk/KqglAssoMonthPunchSummaryMapper.xml
View file @
9c5b5dda
...
...
@@ -284,7 +284,7 @@
<select
id=
"AttendanceSummaryData"
resultMap=
"SummarydataMap"
>
select sum.*,
(select kqz.name from kqgl_main_kqz kqz where kqz.id = sum.att_group) as attname,
IFNULL((select em.job_status from yggl_main_lzb em where em.emp_num = sum.num and em.org_code = sum.org_code),0) as turnover_status
IFNULL((select em.job_status from yggl_main_lzb em where em.emp_num = sum.num and em.org_code = sum.org_code
LIMIT 1
),0) as turnover_status
from kqgl_asso_month_punch_summary sum
where sum.org_code = #{param.orgCode}
and sum.belong_year = #{param.year}
...
...
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