|
@@ -15,6 +15,7 @@ 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.CourseStatisticService;
|
|
import cn.com.qmth.examcloud.core.print.service.PrintingProjectService;
|
|
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.PrintingProjectStatisticService;
|
|
|
|
+import cn.com.qmth.examcloud.core.print.service.ProjectBackupSettingService;
|
|
import cn.com.qmth.examcloud.core.print.service.bean.printingproject.PrintingProjectLessInfo;
|
|
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.PrintingProjectStatisticConvert;
|
|
import cn.com.qmth.examcloud.core.print.service.bean.printingprojectstatistic.PrintingProjectStatisticInfo;
|
|
import cn.com.qmth.examcloud.core.print.service.bean.printingprojectstatistic.PrintingProjectStatisticInfo;
|
|
@@ -41,6 +42,8 @@ public class PrintingProjectStatisticServiceImpl implements PrintingProjectStati
|
|
private PrintingProjectService printingProjectService;
|
|
private PrintingProjectService printingProjectService;
|
|
@Autowired
|
|
@Autowired
|
|
private CourseStatisticService courseStatisticService;
|
|
private CourseStatisticService courseStatisticService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ProjectBackupSettingService projectBackupSettingService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public PrintingProjectStatisticInfo getPrintingProjectStatistic(Long orgId, Long examId) {
|
|
public PrintingProjectStatisticInfo getPrintingProjectStatistic(Long orgId, Long examId) {
|
|
@@ -90,25 +93,44 @@ public class PrintingProjectStatisticServiceImpl implements PrintingProjectStati
|
|
statistic = new ProjectStatistic();
|
|
statistic = new ProjectStatistic();
|
|
statistic.setProjectId(project.getProjectId());
|
|
statistic.setProjectId(project.getProjectId());
|
|
}
|
|
}
|
|
- //todo
|
|
|
|
-
|
|
|
|
//人科次
|
|
//人科次
|
|
|
|
+ int totalStudent = this.calculateTotalStudent(project.getOrgId(), project.getExamId());
|
|
|
|
+
|
|
//课程数量
|
|
//课程数量
|
|
|
|
+ int totalCourse = this.calculateTotalCourse(project.getOrgId(), project.getExamId());
|
|
|
|
+
|
|
//试卷数量
|
|
//试卷数量
|
|
|
|
+ int totalPaper = this.calculateTotalPaper(project.getOrgId(), project.getExamId());
|
|
|
|
+
|
|
//试卷袋数量
|
|
//试卷袋数量
|
|
|
|
+ int totalPkg = this.calculateTotalPkg(project.getOrgId(), project.getExamId());
|
|
|
|
|
|
//常规-A3数量
|
|
//常规-A3数量
|
|
- //备份-A3数量
|
|
|
|
- //合计-A3数量
|
|
|
|
|
|
|
|
//常规-A4数量
|
|
//常规-A4数量
|
|
- //备份-A4数量
|
|
|
|
- //合计-A4数量
|
|
|
|
|
|
|
|
- //常规-总数(A3)
|
|
|
|
- //备份-总数(A3
|
|
|
|
- //合计-总数(A3
|
|
|
|
|
|
+ //projectBackupSettingService
|
|
|
|
+ //备份-A3数量
|
|
|
|
+
|
|
|
|
+ //备份-A4数量
|
|
|
|
+ //Double ceil = Math.ceil(getNormalA4() / 2.0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private int calculateTotalStudent(Long orgId, Long examId) {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private int calculateTotalCourse(Long orgId, Long examId) {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private int calculateTotalPaper(Long orgId, Long examId) {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private int calculateTotalPkg(Long orgId, Long examId) {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|