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

添加假日数据

parent b0df6767
...@@ -84,8 +84,8 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract { ...@@ -84,8 +84,8 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
Long weekClassId = this.getWeekClassId(attendanceGroupFixedworkEntity, week); Long weekClassId = this.getWeekClassId(attendanceGroupFixedworkEntity, week);
//log.info("weekClassId:{}", weekClassId); //log.info("weekClassId:{}", weekClassId);
//weekClassId为-1 则不在考勤 //weekClassId为-1 则不在考勤
Boolean checkWorkByHoliday = checkWorkByHoliday(); Boolean checkWorkByHoliday = checkWorkByHoliday(commonData.getDateStr());
Boolean checkHolidayByWorkDay = checkHolidayByWorkDay(); Boolean checkHolidayByWorkDay = checkHolidayByWorkDay(commonData.getDateStr());
if (weekClassId == -1L) { if (weekClassId == -1L) {
//跳过本次循环 //跳过本次循环
...@@ -221,10 +221,10 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract { ...@@ -221,10 +221,10 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
// //
// } // }
if (goInTime == false && offInTime == false) { // if (goInTime == false && offInTime == false) {
log.info("考勤时间不在上班区间与下班区间中,不做处理!attendDate:{}", DateUtil.formatDateTime(commonData.getAttendanceDate())); // log.info("考勤时间不在上班区间与下班区间中,不做处理!attendDate:{}", DateUtil.formatDateTime(commonData.getAttendanceDate()));
// continue; // // continue;
} // }
if (goInTime) { if (goInTime) {
//如果是上班打卡区间范围,判断是否迟到 //如果是上班打卡区间范围,判断是否迟到
for (AttendanceRecordDetailEntity attendanceRecordDetailEntity : commonData.getDetailEntityList()) { for (AttendanceRecordDetailEntity attendanceRecordDetailEntity : commonData.getDetailEntityList()) {
...@@ -454,11 +454,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract { ...@@ -454,11 +454,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
} }
private Boolean checkWorkByHoliday() { private Boolean checkWorkByHoliday(String date) {
Boolean bool = false; Boolean bool = false;
HolidayQuery holidayQuery = new HolidayQuery(); HolidayQuery holidayQuery = new HolidayQuery();
holidayQuery.setStartTimeStart(DateUtil.today()); holidayQuery.setStartTimeStart(date);
holidayQuery.setStartTimeEnd(DateUtil.today()); holidayQuery.setStartTimeEnd(date);
HolidayEntity holidayEntity = holidayService.selectOne(holidayQuery); HolidayEntity holidayEntity = holidayService.selectOne(holidayQuery);
if (!ObjectUtils.isEmpty(holidayEntity)) { if (!ObjectUtils.isEmpty(holidayEntity)) {
Integer workorholiday = holidayEntity.getWorkorholiday(); Integer workorholiday = holidayEntity.getWorkorholiday();
...@@ -470,11 +470,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract { ...@@ -470,11 +470,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
return bool; return bool;
} }
private Boolean checkHolidayByWorkDay() { private Boolean checkHolidayByWorkDay(String date) {
Boolean bool = false; Boolean bool = false;
HolidayQuery holidayQuery = new HolidayQuery(); HolidayQuery holidayQuery = new HolidayQuery();
holidayQuery.setStartTimeStart(DateUtil.today()); holidayQuery.setStartTimeStart(date);
holidayQuery.setStartTimeEnd(DateUtil.today()); holidayQuery.setStartTimeEnd(date);
HolidayEntity holidayEntity = holidayService.selectOne(holidayQuery); HolidayEntity holidayEntity = holidayService.selectOne(holidayQuery);
if (!ObjectUtils.isEmpty(holidayEntity)) { if (!ObjectUtils.isEmpty(holidayEntity)) {
Integer workorholiday = holidayEntity.getWorkorholiday(); Integer workorholiday = holidayEntity.getWorkorholiday();
......
...@@ -33,8 +33,8 @@ Authorization: {{authToken}} ...@@ -33,8 +33,8 @@ Authorization: {{authToken}}
Content-Type: application/json Content-Type: application/json
{ {
"attendanceDateStart":"2023-10-19", "attendanceDateStart":"2023-10-05",
"attendanceDateEnd":"2023-10-19" "attendanceDateEnd":"2023-10-05"
} }
......
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