Commit 4b27dbd3 authored by 赵啸非's avatar 赵啸非

修改考勤计算

parent a9921d9a
...@@ -31,7 +31,7 @@ public class AddAttendThread implements Runnable { ...@@ -31,7 +31,7 @@ public class AddAttendThread implements Runnable {
DateTime attendEnd = DateUtil.parseDate(hikEntity.getAttendanceDateEnd()); DateTime attendEnd = DateUtil.parseDate(hikEntity.getAttendanceDateEnd());
int compare = DateUtil.compare(attendEnd, attendStart); int compare = DateUtil.compare(attendEnd, attendStart);
StopWatch stopWatch = new StopWatch("stopwatch attend"); StopWatch stopWatch = new StopWatch("stopwatch attend");
for(int i=0;i<compare;i++){ for(int i=0;i<=compare;i++){
DateTime curDate = DateUtil.offsetDay(attendStart, i); DateTime curDate = DateUtil.offsetDay(attendStart, i);
log.info("考勤计算日期:{}",curDate.toDateStr()); log.info("考勤计算日期:{}",curDate.toDateStr());
stopWatch.start("执行本地方法"); stopWatch.start("执行本地方法");
......
...@@ -31,7 +31,7 @@ Content-Type: application/json ...@@ -31,7 +31,7 @@ Content-Type: application/json
{ {
"attendanceDateStart":"2023-12-01", "attendanceDateStart":"2023-12-01",
"attendanceDateEnd":"2023-12-31" "attendanceDateEnd":"2023-12-01"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment