|
@@ -226,6 +226,7 @@ public class PmWorkReportServiceImpl extends AbstractCrudService<PmWorkReportMap
|
|
|
rp.setTenantId(pmWorkReport.getTenantId());
|
|
|
rp.setUpdateBy(SecurityUtils.getUsername());
|
|
|
rp.setUpdateTime(LocalDateTime.now());
|
|
|
+ rp.setTotalHours(totalWorkTime);
|
|
|
pmWorkReportMapper.updateById(rp);
|
|
|
|
|
|
LambdaQueryWrapper<PmWorkContent> queryWrapper = Wrappers.lambdaQuery();
|
|
@@ -276,9 +277,8 @@ public class PmWorkReportServiceImpl extends AbstractCrudService<PmWorkReportMap
|
|
|
weekTotalMap.put("WeekWorkTimeTotal", 0);
|
|
|
weekMap.put("WeeklyData", week);
|
|
|
}
|
|
|
- List<PmProjectTotalWorkTimeVo> workTimeVoListW = pmWorkContentMapper.timeCount(startOfWeekDateTime, endOfWeekDateTime, SecurityUtils.getUserId());
|
|
|
- for (int i = 0; i < workTimeVoListW.size(); i++) {
|
|
|
- weekTotal = weekTotal.add(workTimeVoListW.get(i).getTotalWorkTime());
|
|
|
+ for (int i = 0; i < week.size(); i++) {
|
|
|
+ weekTotal = weekTotal.add(week.get(i).getWorkTime());
|
|
|
}
|
|
|
BigDecimal totalPercentageW = BigDecimal.ZERO;
|
|
|
for (int a = 0; a < week.size(); a++) {
|
|
@@ -303,9 +303,8 @@ public class PmWorkReportServiceImpl extends AbstractCrudService<PmWorkReportMap
|
|
|
weekTotalMap.put("MonthWorkTimeTotal", 0);
|
|
|
weekMap.put("MonthlyData", month);
|
|
|
}
|
|
|
- List<PmProjectTotalWorkTimeVo> workTimeVoListM = pmWorkContentMapper.timeCount(startOfMonthDateTime, endOfMonthDateTime, SecurityUtils.getUserId());
|
|
|
- for (int i = 0; i < workTimeVoListM.size(); i++) {
|
|
|
- monthTotal = monthTotal.add(workTimeVoListM.get(i).getTotalWorkTime());
|
|
|
+ for (int i = 0; i < month.size(); i++) {
|
|
|
+ monthTotal = monthTotal.add(month.get(i).getWorkTime());
|
|
|
}
|
|
|
BigDecimal totalPercentageM = BigDecimal.ZERO;
|
|
|
for (int b = 0; b < month.size(); b++) {
|