Commit b558a6d5 authored by 赵啸非's avatar 赵啸非

修改请假计算考勤

parent 48dba697
......@@ -424,6 +424,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
// DateUtil.between()
if (ObjectUtils.isEmpty(offWorkDate)) {
Date offWorkDate1 = attendanceClassDetailEntity.getOffWorkDate();
if(attendanceClassDetailEntity.getOffWorkDateBefore()>0){
offWorkDate1=DateUtil.offsetMinute(offWorkDate1, attendanceClassDetailEntity.getOffWorkDateBefore());
}
boolean in = DateUtil.isIn(offWorkDate1, DateUtil.parse(DateUtil.format(startLeaveTime, "HH:mm:ss"), "HH:mm:ss"),
DateUtil.parse(DateUtil.format(endLeaveTime, "HH:mm:ss"), "HH:mm:ss"));
if (in) {
......
......@@ -38,7 +38,7 @@ Content-Type: application/json
{
"attendanceDateStart": "2024-07-01",
"attendanceDateEnd": "2024-07-01"
"attendanceDateEnd": "2024-07-31"
}
###海康考勤打卡记录计算1
......@@ -46,9 +46,9 @@ POST {{baseUrl}}/attendance/record/hik/addAttendanceRecord
Content-Type: application/json
{
"attendanceDateStart": "2024-07-01",
"attendanceDateEnd": "2024-07-01",
"staffId": 476
"attendanceDateStart": "2024-07-03",
"attendanceDateEnd": "2024-07-03",
"staffId": 365
}
......
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