|
@@ -381,8 +381,10 @@ public class WorkScheduleAttendanceController {
|
|
BigDecimal leaveNum = requestForLeaveInfoService.sumDaysByPersonIdAndTimeRange(pi.getId(),startDate,endDate);
|
|
BigDecimal leaveNum = requestForLeaveInfoService.sumDaysByPersonIdAndTimeRange(pi.getId(),startDate,endDate);
|
|
wsaDTO.setLeaveNum(leaveNum);
|
|
wsaDTO.setLeaveNum(leaveNum);
|
|
|
|
|
|
- String remark = queryRemark(String.valueOf(pi.getId()),startMonth,endMonth);
|
|
|
|
|
|
+ //String remark = queryRemark(String.valueOf(pi.getId()),startMonth,endMonth);
|
|
|
|
+ String remark = statScheduleAttendanceByDate(pi.getId(),startDate,endDate);
|
|
wsaDTO.setRemark(remark);
|
|
wsaDTO.setRemark(remark);
|
|
|
|
+
|
|
wsaList.add(wsaDTO);
|
|
wsaList.add(wsaDTO);
|
|
|
|
|
|
}
|
|
}
|
|
@@ -405,6 +407,35 @@ public class WorkScheduleAttendanceController {
|
|
return msgResult;
|
|
return msgResult;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 查询人员班次按天考勤次数
|
|
|
|
+ * @param personId
|
|
|
|
+ * @param startDate
|
|
|
|
+ * @param endDate
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ private String statScheduleAttendanceByDate(Long personId, Date startDate, Date endDate) {
|
|
|
|
+ List<Map> mapList = workScheduleAttendanceService.statScheduleAttendanceByDate(personId,startDate,endDate);
|
|
|
|
+
|
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
|
+
|
|
|
|
+ for (Map map : mapList) {
|
|
|
|
+ if(sb.length()>0){
|
|
|
|
+ sb.append(",");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String shiftId = map.get("workShiftId").toString();
|
|
|
|
+ WorkShiftInfo workShiftInfo = workShiftInfoService.get(shiftId);
|
|
|
|
+ Long dayCount = Long.valueOf(map.get("dayCount").toString());
|
|
|
|
+
|
|
|
|
+ if(workShiftInfo!=null) {
|
|
|
|
+ sb.append(workShiftInfo.getName() + ":" + dayCount + "次");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return sb.toString();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
public String queryRemark(String personId,String startMonth,String endMonth){
|
|
public String queryRemark(String personId,String startMonth,String endMonth){
|
|
|
|
|
|
@@ -465,8 +496,6 @@ public class WorkScheduleAttendanceController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
Set<Map.Entry<String, Object>> entryseSet = workShiftDayMap.entrySet();
|
|
Set<Map.Entry<String, Object>> entryseSet = workShiftDayMap.entrySet();
|
|
|
|
|
|
for (Map.Entry<String, Object> entry:entryseSet) {
|
|
for (Map.Entry<String, Object> entry:entryseSet) {
|