fix: 月度统计完成总人数不对的bug
This commit is contained in:
@@ -78,12 +78,12 @@ public class TrainingPlanMonthlyStatProvider implements IReportDataProvider {
|
||||
ctx.put("trainingCourses", buildTrainingCourses(trainingId));
|
||||
ctx.put("trainingContent", buildTrainingContent(trainingId));
|
||||
|
||||
ctx.put("completedCount", training.getCompleteCount() == null ? 0L : training.getCompleteCount());
|
||||
List<OnlineTrainingMonthlyRowVo> voRows = ledgerReportMapper.selectOnlineTrainingMonthlyRows(companyId, trainingId, normalizedUserIds);
|
||||
if (voRows == null || voRows.isEmpty()) {
|
||||
return ctx;
|
||||
}
|
||||
|
||||
ctx.put("completedCount", countCompleted(voRows));
|
||||
ctx.put("rows", buildRows(voRows, progressMap));
|
||||
return ctx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user