|
|
|
@ -62,7 +62,9 @@ public class IProductionPlanServiceImpl extends ServiceImpl<IProductionPlanMappe |
|
|
|
|
map.put("name", iProductionPlan.getPlanName()); |
|
|
|
|
map.put("plan", 0); |
|
|
|
|
map.put("date", recentWeekDates.get(i)); |
|
|
|
|
map.put("sj", 0); |
|
|
|
|
List<IProgress> progresseslist = iProgressMapper.queryProcessSj(iProductionPlan.getId(),recentWeekDates.get(i)); |
|
|
|
|
long total = progresseslist.stream().mapToLong(IProgress::getDayProgress).sum(); |
|
|
|
|
map.put("sj", total); |
|
|
|
|
res.add(map); |
|
|
|
|
}else{ |
|
|
|
|
//获取每个计划时间差(结束时间-开始时间)
|
|
|
|
@ -79,9 +81,11 @@ public class IProductionPlanServiceImpl extends ServiceImpl<IProductionPlanMappe |
|
|
|
|
map.put("plan", currentpercent); |
|
|
|
|
map.put("date", recentWeekDates.get(i)); |
|
|
|
|
//查询计划实际填报情况
|
|
|
|
|
List<IProgress> progresseslist = iProgressMapper.queryList(new IProgress().setPlanId(iProductionPlan.getId())); |
|
|
|
|
List<IProgress> progresseslist = iProgressMapper.queryProcessSj(iProductionPlan.getId(),recentWeekDates.get(i)); |
|
|
|
|
long total = progresseslist.stream().mapToLong(IProgress::getDayProgress).sum(); |
|
|
|
|
map.put("total", total); |
|
|
|
|
/* List<IProgress> progresseslist = iProgressMapper.queryList(new IProgress().setPlanId(iProductionPlan.getId())); |
|
|
|
|
long total = progresseslist.stream().mapToLong(IProgress::getDayProgress).sum();*/ |
|
|
|
|
map.put("sj", total); |
|
|
|
|
res.add(map); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|