From b9456d139422ea00fa736c1313aad597be36bdf0 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 16 七月 2024 13:58:56 +0800 Subject: [PATCH] 导出bug修改完善 --- src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java | 36 +++++++++++++++++++++++++++++++++--- 1 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java b/src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java index 5ad4dcf..bfbbe5a 100644 --- a/src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java +++ b/src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java @@ -4,8 +4,7 @@ import com.mindskip.xzs.domain.ExamTemplatesUserCount; import com.mindskip.xzs.domain.ScoreTemplatesUserCount; import com.mindskip.xzs.domain.other.KeyValue; -import com.mindskip.xzs.domain.vo.ExamPaperStatisticVO; -import com.mindskip.xzs.domain.vo.TeamplatesUserExcelVO; +import com.mindskip.xzs.domain.vo.*; import com.mindskip.xzs.viewmodel.admin.exam.ExamPaperEditRequestVM; import com.mindskip.xzs.viewmodel.admin.paper.ExamPaperGradePageRequestVM; import com.mindskip.xzs.viewmodel.admin.paper.ExamPaperGradeQuery; @@ -22,7 +21,7 @@ List<ExamPaperAnswer> studentPage(ExamPaperAnswerPageVM requestVM); - Integer selectAllCount(); + Integer selectAllCount(List<Integer> deptIds); List<KeyValue> selectCountByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime); @@ -50,9 +49,40 @@ void setMissExam(ExamPaperEditRequestVM model); + void setMissExam(ExamTemplatesVO model); + + void setMissExamByTemplate(ExamTemplatesVO model); + void insertDefault(ExamPaperEditRequestVM model); Map<String, Object> histogram(ExamPaperStatisticVO examPaperStatisticVO); + Map<String, Object> histogramByTemplate(ExamPaperStatisticVO examPaperStatisticVO); + Map<String, Object> pieChart(ExamPaperStatisticVO examPaperStatisticVO); + + List<ExamPaperDataExportVO> dataByTemplate(ExamPaperDataVO examPaperDataVO); + + ExamPaperDataExportVO totalByTemplate(ExamPaperDataVO examPaperDataVO); + + List<ExamPaperDataExportVO> dataByPaper(ExamPaperDataVO examPaperDataVO); + + ExamPaperDataExportVO totalByPaper(ExamPaperDataVO examPaperDataVO); + + Integer getExamTotal(ExamPaperStatisticVO examPaperStatisticVO); + + + /** + * 鏍规嵁绛斿嵎璇曞嵎id鑾峰彇鏈�楂樻垚缁╃瓟鍗� + * @param examPaperAnswer 绛斿嵎 + * @return 鏈�楂樻垚缁╃瓟鍗� + */ + ExamPaperAnswer getTemplateOtherExamAnswer(ExamPaperAnswer examPaperAnswer); + + /** + * 鏍规嵁璇曞嵎id鑾峰彇鏈�楂樻垚缁╃瓟鍗� + * @param examPaperAnswer 绛斿嵎 + * @return 鏈�楂樻垚缁╃瓟鍗� + */ + ExamPaperAnswer getPaperOtherExamAnswer(ExamPaperAnswer examPaperAnswer); } -- Gitblit v1.8.0