Commit 7da63605 by 张富康

feat(attendance): 增加试用和修正工时天数及小时字段支持

- 在AttendanceSummaryMapper.xml中新增probation_hours、correction_hours、probation_days和correction_days字段
- 更新相关SQL语句,支持新增字段的插入和更新操作
- PerformanceEvaluationService中添加日志记录奖励金额超出扣罚金额情况,方便排查问题
- 优化异常抛出逻辑,提示用户调整整体绩效等级
1 parent 32611aae
......@@ -173,6 +173,7 @@ public class PerformanceEvaluationService {
}
// 判断该金额加上totalExtraAmount是否大于0 如果结果大于0则抛异常说明 当前你名下的驻店销售组员,奖励金额已超出当前扣罚金额,请及时调整整体绩效等级
if (NumberUtil.add(subInit, totalExtraAmount).compareTo(BigDecimal.ZERO) > 0) {
log.info("奖励金额已超出当前扣罚金额-超过金额:{}", NumberUtil.add(subInit, totalExtraAmount));
throw new RpcServiceException("亲,当前你名下的驻店销售组员,奖励金额已超出当前扣罚金额,请及时调整整体绩效等级");
}
// 更新绩效
......@@ -300,6 +301,7 @@ public class PerformanceEvaluationService {
}
// 判断 totalSubInit、totalExtraAmount加和 是否大于0
if (NumberUtil.add(totalSubInit, totalExtraAmount).compareTo(BigDecimal.ZERO) > 0 ) {
log.info("奖励金额已超出当前扣罚金额-超过金额:{}", NumberUtil.add(totalSubInit, totalExtraAmount));
throw new RpcServiceException("亲,当前你名下的驻店销售组员,奖励金额已超出当前扣罚金额,请及时调整整体绩效等级");
}
// 更新数据
......
......@@ -17,6 +17,10 @@
total_work_hours,
late_early_minutes,
late_early_hours,
probation_hours,
correction_hours,
probation_days,
correction_days,
missing_punch_count,
entry_date,
correction_date,
......@@ -44,6 +48,10 @@
#{totalWorkHours},
#{lateEarlyMinutes},
#{lateEarlyHours},
#{probationHours},
#{correctionHours},
#{probationDays},
#{correctionDays},
#{missingPunchCount},
#{entryDate},
#{correctionDate},
......@@ -67,6 +75,10 @@
total_work_hours = VALUES(total_work_hours),
late_early_minutes = VALUES(late_early_minutes),
late_early_hours = VALUES(late_early_hours),
probation_hours = VALUES(probation_hours),
correction_hours = VALUES(correction_hours),
probation_days = VALUES(probation_days),
correction_days = VALUES(correction_days),
missing_punch_count = VALUES(missing_punch_count),
entry_date = VALUES(entry_date),
correction_date = VALUES(correction_date),
......@@ -93,6 +105,10 @@
total_work_hours,
late_early_minutes,
late_early_hours,
probation_hours,
correction_hours,
probation_days,
correction_days,
missing_punch_count,
entry_date,
correction_date,
......@@ -123,6 +139,10 @@
#{item.totalWorkHours},
#{item.lateEarlyMinutes},
#{item.lateEarlyHours},
#{item.probationHours},
#{item.correctionHours},
#{item.probationDays},
#{item.correctionDays},
#{item.missingPunchCount},
#{item.entryDate},
#{item.correctionDate},
......@@ -149,6 +169,10 @@
total_work_hours = VALUES(total_work_hours),
late_early_minutes = VALUES(late_early_minutes),
late_early_hours = VALUES(late_early_hours),
probation_hours = VALUES(probation_hours),
correction_hours = VALUES(correction_hours),
probation_days = VALUES(probation_days),
correction_days = VALUES(correction_days),
missing_punch_count = VALUES(missing_punch_count),
entry_date = VALUES(entry_date),
correction_date = VALUES(correction_date),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!