出勤结果逻辑修复

main
liuliang 6 months ago
parent 16e3c91ccd
commit 835f5befcf

@ -115,7 +115,7 @@ public class GetScheduleResultListCmd extends AbstractCommonCommand<Map<String,O
adjustWorkOverTimeClass(data, attendanceItems,commandContext);
}
resultMap.put(shiftResult.get("bcrq").toString(),bcData);
clockInTimeDataMap.put(shiftResult.get("bcrq").toString(),shiftResult.get("clockInTimeData"));
clockInTimeDataMap.put(shiftResult.get("bcrq").toString(),shiftResult.get("oldclockInTimeData"));
}
/** 加班计划*/

@ -283,6 +283,7 @@ public class ShiftServiceImpl extends Service implements ShiftService {
clockInTimeDataParam.put("askForLeaveAndEvctionSchedule",askForLeaveAndEvctionSchedule);
List<ClockPointDTO> clockInTimeData = utilService.getClockInPointCmd(clockInTimeDataParam);
clockInDataMatchInfo.put("oldclockInTimeData",clockInTimeData);
if(clockInTimeData != null && clockInTimeData.size() > 0) {
clockInTimeData = clockInTimeData.stream().filter(ClockPointDTO::isRecord).collect(Collectors.toList());
}

@ -267,6 +267,9 @@ public class UpdateAttendanceResultWrapper extends Service {
resultMap.put("itemduration",itemduration);
askForLeaveToOffsetAbnomaly.put(askForLeaveList.get(i),(List<Map<String,Object>>)handleMap.get("offsetAskForLeaveAnomaly"));
resultMap.put("item",askForLeaveList.get(i).get("jqlx"));
if (sffzcx.equals(CheckBoxEnum.CHECKED.getKey())){
resultList.add(resultMap);
}
}else if (!"".equals(qjsc) || (CheckBoxEnum.CHECKED.getKey().equals(btj) && (btgz.equals(HalfDayRuleREnum.HALF_TOTAL_DURATION.getKey()) || btgz.equals(HalfDayRuleREnum.HALF_RATED_DURATION.getKey())))){
if (CheckBoxEnum.CHECKED.getKey().equals(btj)){
if (btgz.equals(HalfDayRuleREnum.HALF_TOTAL_DURATION.getKey())){
@ -450,6 +453,9 @@ public class UpdateAttendanceResultWrapper extends Service {
resultMap.put("itemduration",itemduration);
evectionToOffsetAbnomaly.put(evectionList.get(i),(List<Map<String,Object>>)handleMap.get("offsetEvectionAnomaly"));
resultMap.put("item",evectionList.get(i).get("cclx"));
if (sffzcx.equals(CheckBoxEnum.CHECKED.getKey())){
resultList.add(resultMap);
}
}else if (!"".equals(ccsc) || (CheckBoxEnum.CHECKED.getKey().equals(btj) && (btgz.equals(HalfDayRuleREnum.HALF_TOTAL_DURATION.getKey()) || btgz.equals(HalfDayRuleREnum.HALF_RATED_DURATION.getKey())))){
//时长出差
itemduration = Utils.getItemduration(hsl,hsdw,ccscMinute,AccountingUnitEnum.MINUTES,Double.valueOf(scheduleResult.get(0).get("edsc").toString()));

Loading…
Cancel
Save