|
@@ -1217,7 +1217,8 @@ public class CheckJobServiceImpl extends BaseServiceImpl<CheckJobMapper, CheckJo
|
|
|
List<CheckJobReportVO> result = new ArrayList<CheckJobReportVO>();
|
|
|
for(Map<String, LocalDateTime> map: monthStartAndEndList){
|
|
|
CheckJobReportVO vo = new CheckJobReportVO();
|
|
|
- vo.setMonth(searchStartTime.getYear() + "-" + map.get("searchStartTimeMonth").getMonthValue() + "月");
|
|
|
+ List<CheckJobVO> detailList = new ArrayList<CheckJobVO>();
|
|
|
+ vo.setMonth(map.get("searchStartTimeMonth").getYear() + "-" + map.get("searchStartTimeMonth").getMonthValue() + "月");
|
|
|
int totalNum = 0;
|
|
|
int totalFinishNum = 0;
|
|
|
int totalWaitNum = 0;
|
|
@@ -1225,6 +1226,7 @@ public class CheckJobServiceImpl extends BaseServiceImpl<CheckJobMapper, CheckJo
|
|
|
for(CheckJobVO checkJob: list){
|
|
|
if(checkJob.getStartTime().isAfter(map.get("searchStartTimeMonth").toLocalDate()) && checkJob.getStartTime().isBefore(map.get("searchEndTimeMonth").toLocalDate())){
|
|
|
totalNum ++;
|
|
|
+ detailList.add(checkJob);
|
|
|
if(checkJob.getStatus().equals(CheckJobStatusEnum.FINISHED.getValue())){
|
|
|
totalFinishNum ++;
|
|
|
}
|
|
@@ -1234,12 +1236,12 @@ public class CheckJobServiceImpl extends BaseServiceImpl<CheckJobMapper, CheckJo
|
|
|
if(totalNum != 0){
|
|
|
totalWaitNum = totalNum - totalFinishNum;
|
|
|
finishRate = BigDecimalUtil.decimal(BigDecimalUtil.div(totalFinishNum*100, totalNum),2);
|
|
|
- System.out.println(finishRate);
|
|
|
}
|
|
|
vo.setTotalNum(totalNum);
|
|
|
vo.setTotalFinishNum(totalFinishNum);
|
|
|
vo.setTotalWaitNum(totalWaitNum);
|
|
|
vo.setFinishRate(finishRate+"%");
|
|
|
+ vo.setDetailList(detailList);
|
|
|
result.add(vo);
|
|
|
}
|
|
|
return result;
|
|
@@ -1263,26 +1265,27 @@ public class CheckJobServiceImpl extends BaseServiceImpl<CheckJobMapper, CheckJo
|
|
|
int i = 1;
|
|
|
for(Map<String, LocalDateTime> map: monthStartAndEndList){
|
|
|
CheckJobReportWeekHoursVO vo = new CheckJobReportWeekHoursVO();
|
|
|
+ List<CheckJobVO> detailList = new ArrayList<CheckJobVO>();
|
|
|
vo.setWeek((i++) + "周");
|
|
|
double totalHours = 0;
|
|
|
for(CheckJobVO checkJob: list){
|
|
|
- System.out.println("checkJob.getStandardHours(): " + checkJob.getStandardHours());
|
|
|
if(checkJob.getStartTime().isAfter(map.get("searchStartTimeWeek").toLocalDate()) && checkJob.getStartTime().isBefore(map.get("searchEndTimeWeek").toLocalDate())){
|
|
|
String standardHours = checkJob.getStandardHours();
|
|
|
+ detailList.add(checkJob);
|
|
|
if(StringUtils.isBlank(checkJob.getStandardHours())){
|
|
|
continue;
|
|
|
}else{
|
|
|
totalHours = totalHours + Double.valueOf(standardHours);
|
|
|
- System.out.println("totalHours: " + totalHours);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
vo.setTotalHours(totalHours);
|
|
|
+ vo.setDetailList(detailList);
|
|
|
result.add(vo);
|
|
|
}
|
|
|
- for(CheckJobReportWeekHoursVO r: result){
|
|
|
+ /* for(CheckJobReportWeekHoursVO r: result){
|
|
|
System.out.println(r.toString());
|
|
|
- }
|
|
|
+ }*/
|
|
|
return result;
|
|
|
}
|
|
|
}
|