Commit 9d1bb726 by 崔彦峰

Merge remote-tracking branch 'origin/v5.6.0' into v5.6.0

2 parents c2f615b3 53eb2cf0
......@@ -885,11 +885,27 @@ public class AttendanceDataCleansingService {
lateEarlyMinutes = NumberUtil.add(lateEarlyMinutes, lateMinutes);
// 计算打卡数
normalClockCount++;
// 增加工时
if (isAfterOfficialDate) {
correctionHours = NumberUtil.add(correctionHours, new BigDecimal("8"));
log.info("策略一:处理迟到不早退转正出勤-加8h:日期:{}", clockInfo.getClockInDate());
} else {
probationHours = NumberUtil.add(probationHours, new BigDecimal("8"));
log.info("策略一:处理迟到不早退试用期出勤-加8h:日期:{}", clockInfo.getClockInDate());
}
} else if (!isLate && !isClockInMissing && isEarly) {
// 不迟到(不缺卡)但早退 计算今天考勤工时
lateEarlyMinutes = NumberUtil.add(lateEarlyMinutes, earlyMinutes);
// 计算打卡数
normalClockCount++;
// 增加工时
if (isAfterOfficialDate) {
correctionHours = NumberUtil.add(correctionHours, new BigDecimal("8"));
log.info("策略一:处理迟到不早退转正出勤-加8h:日期:{}", clockInfo.getClockInDate());
} else {
probationHours = NumberUtil.add(probationHours, new BigDecimal("8"));
log.info("策略一:处理迟到不早退试用期出勤-加8h:日期:{}", clockInfo.getClockInDate());
}
}
// lateEarlyHours = new BigDecimal(Math.ceil(lateEarlyMinutes.doubleValue() / 30.0) * 0.5);
ClockInResult clockInResult = new ClockInResult();
......@@ -1051,11 +1067,27 @@ public class AttendanceDataCleansingService {
lateEarlyMinutes = NumberUtil.add(lateEarlyMinutes, lateMinutes);
// 计算打卡数
normalClockCount++;
// 增加工时
if (isAfterOfficialDate) {
correctionHours = NumberUtil.add(correctionHours, new BigDecimal("8"));
log.info("默认策略:处理迟到不早退转正出勤-加8h:日期:{}", clockInfo.getClockInDate());
} else {
probationHours = NumberUtil.add(probationHours, new BigDecimal("8"));
log.info("默认策略:处理迟到不早退试用期出勤-加8h:日期:{}", clockInfo.getClockInDate());
}
} else if (!isLate && !isClockInMissing && isEarly) {
// 不迟到(不缺卡)但早退 计算今天考勤工时
lateEarlyMinutes = NumberUtil.add(lateEarlyMinutes, earlyMinutes);
// 计算打卡数
normalClockCount++;
// 增加工时
if (isAfterOfficialDate) {
correctionHours = NumberUtil.add(correctionHours, new BigDecimal("8"));
log.info("默认策略:处理迟到不早退转正出勤-加8h:日期:{}", clockInfo.getClockInDate());
} else {
probationHours = NumberUtil.add(probationHours, new BigDecimal("8"));
log.info("默认策略:处理迟到不早退试用期出勤-加8h:日期:{}", clockInfo.getClockInDate());
}
}
ClockInResult clockInResult = new ClockInResult();
clockInResult.setTotalWorkHours(totalWorkHours);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!