Commit 5bbe5237 authored by 廖旭伟's avatar 廖旭伟

考勤汇总bug修改

parent 11e6d06f
......@@ -349,13 +349,12 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
AttendanceStatEntity temp = statMap.get(item.getStaffId());
if (temp != null) {
temp.setGoTimes(0); //默认只要有异常考勤,当天就不算全勤
if (item.getMorningTimes() > 0) {
temp.setNonCompliancePunch(new BigDecimal(item.getMorningTimes()));
temp.setAfternoonTimes(item.getMorningTimes());
temp.setMorningTimes(item.getMorningTimes());
temp.setOvertimeTimes(item.getOvertimeTimes());
temp.setLateTimes(item.getLateTimes());
}
temp.setAfternoonTimes(item.getMorningTimes());
temp.setMorningTimes(item.getMorningTimes());
temp.setOvertimeTimes(item.getOvertimeTimes());
temp.setLateTimes(item.getLateTimes());
int nonCompliancePunch = item.getMorningTimes()+item.getOvertimeTimes()+item.getLateTimes();
temp.setNonCompliancePunch(new BigDecimal(nonCompliancePunch));
temp.setUpdateTime(new Date());
statMap.put(temp.getStaffId(),temp);
}
......
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