|
@@ -15,9 +15,9 @@ import cn.com.qmth.examcloud.core.print.repository.ProjectStatisticRepository;
|
|
|
import cn.com.qmth.examcloud.core.print.service.CourseStatisticService;
|
|
|
import cn.com.qmth.examcloud.core.print.service.PrintingProjectService;
|
|
|
import cn.com.qmth.examcloud.core.print.service.PrintingProjectStatisticService;
|
|
|
-import cn.com.qmth.examcloud.core.print.service.bean.common.ExamInfo;
|
|
|
-import cn.com.qmth.examcloud.core.print.service.bean.printingproject.ProjectStatisticInfo;
|
|
|
-import cn.com.qmth.examcloud.core.print.service.bean.projectstatistic.PrintingStatisticConvert;
|
|
|
+import cn.com.qmth.examcloud.core.print.service.bean.printingproject.PrintingProjectLessInfo;
|
|
|
+import cn.com.qmth.examcloud.core.print.service.bean.printingprojectstatistic.PrintingProjectStatisticConvert;
|
|
|
+import cn.com.qmth.examcloud.core.print.service.bean.printingprojectstatistic.PrintingProjectStatisticInfo;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -42,7 +42,7 @@ public class PrintingProjectStatisticServiceImpl implements PrintingProjectStati
|
|
|
private CourseStatisticService courseStatisticService;
|
|
|
|
|
|
@Override
|
|
|
- public ProjectStatisticInfo getPrintingProjectStatistic(Long orgId, Long examId) {
|
|
|
+ public PrintingProjectStatisticInfo getPrintingProjectStatistic(Long orgId, Long examId) {
|
|
|
Check.isNull(orgId, "学校ID不能为空!");
|
|
|
Check.isNull(examId, "考试ID不能为空!");
|
|
|
|
|
@@ -52,7 +52,7 @@ public class PrintingProjectStatisticServiceImpl implements PrintingProjectStati
|
|
|
}
|
|
|
|
|
|
ProjectStatistic statistic = projectStatisticRepository.getProjectStatisticByProjectId(project.getId());
|
|
|
- return PrintingStatisticConvert.of(project, statistic);
|
|
|
+ return PrintingProjectStatisticConvert.of(project, statistic);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -78,12 +78,12 @@ public class PrintingProjectStatisticServiceImpl implements PrintingProjectStati
|
|
|
log.debug("initAllPrintingProjectStatistic...");
|
|
|
|
|
|
//只处理印刷项目中已有的考试
|
|
|
- List<ExamInfo> exams = printingProjectService.getExamList(null);
|
|
|
- if (exams == null || exams.isEmpty()) {
|
|
|
+ List<PrintingProjectLessInfo> projects = printingProjectService.getAllPrintingProjectLessInfo();
|
|
|
+ if (projects == null || projects.isEmpty()) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- for (ExamInfo info : exams) {
|
|
|
+ for (PrintingProjectLessInfo project : projects) {
|
|
|
//todo
|
|
|
}
|
|
|
}
|