|
@@ -3,6 +3,8 @@ package com.qmth.teachcloud.report.business.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
+import com.qmth.teachcloud.common.util.ExcelUtil;
|
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
|
import com.qmth.teachcloud.report.business.entity.TAExamCourse;
|
|
|
import com.qmth.teachcloud.report.business.entity.TAExamTotal;
|
|
@@ -27,6 +29,9 @@ public class TAExamTotalServiceImpl extends ServiceImpl<TAExamTotalMapper, TAExa
|
|
|
@Resource
|
|
|
TAExamTotalMapper taExamTotalMapper;
|
|
|
|
|
|
+ @Resource
|
|
|
+ TAExamTotalService taExamTotalService;
|
|
|
+
|
|
|
@Override
|
|
|
public TAExamTotal getOverview(String semester, Long examId) {
|
|
|
Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
@@ -42,8 +47,9 @@ public class TAExamTotalServiceImpl extends ServiceImpl<TAExamTotalMapper, TAExa
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void exportCourseSummary(String semester, Long examId, HttpServletResponse response) {
|
|
|
-
|
|
|
+ public void exportCourseSummary(String semester, Long examId, HttpServletResponse response) throws Exception {
|
|
|
+ IPage<TAExamCourse> taExamCourseIPage = taExamTotalService.getCourseSummary(semester, examId, SystemConstant.PAGE_NUMBER, SystemConstant.PAGE_SIZE);
|
|
|
+ ExcelUtil.excelExport("课程分析", TAExamCourse.class, taExamCourseIPage.getRecords(), response);
|
|
|
}
|
|
|
|
|
|
@Override
|