From 219cf838792ab0d50dd042d0fb8c60dd3a1e76f8 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 16 七月 2024 17:56:47 +0800 Subject: [PATCH] feat:部门管理员不展示通知 --- src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java | 64 +++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java b/src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java index 0d0fe96..531b846 100644 --- a/src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java +++ b/src/main/java/com/mindskip/xzs/repository/ExamPaperAnswerMapper.java @@ -1,20 +1,27 @@ package com.mindskip.xzs.repository; import com.mindskip.xzs.domain.ExamPaperAnswer; +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.*; +import com.mindskip.xzs.viewmodel.admin.exam.ExamPaperEditRequestVM; +import com.mindskip.xzs.viewmodel.admin.paper.ExamPaperGradePageRequestVM; +import com.mindskip.xzs.viewmodel.admin.paper.ExamPaperGradeQuery; import com.mindskip.xzs.viewmodel.student.exampaper.ExamPaperAnswerPageVM; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; +import java.util.Map; @Mapper public interface ExamPaperAnswerMapper extends BaseMapper<ExamPaperAnswer> { List<ExamPaperAnswer> studentPage(ExamPaperAnswerPageVM requestVM); - Integer selectAllCount(); + Integer selectAllCount(List<Integer> deptIds); List<KeyValue> selectCountByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime); @@ -23,4 +30,59 @@ List<ExamPaperAnswer> adminPage(com.mindskip.xzs.viewmodel.admin.paper.ExamPaperAnswerPageRequestVM requestVM); ExamPaperAnswer getById(Integer id); + + List<ExamPaperAnswer> selectByPaperName(@Param("paperName") String paperName); + + List<ExamPaperAnswer> getByExamPaperIdAndUserId(@Param("examTemplatesUserCount")List<ExamTemplatesUserCount> examTemplatesUserCount); + + List<ExamPaperAnswer> adminPageByGrade(ExamPaperGradePageRequestVM grade); + + List<ExamPaperAnswer> getByScorePaperIdAndUserId(@Param("scoreTemplatesUserCounts")List<ScoreTemplatesUserCount> scoreTemplatesUserCounts); + + List<ExamPaperAnswer> getByCreatUser(@Param("query") ExamPaperGradeQuery query); + + List<ExamPaperAnswer> getByExamPaperIds(@Param("ids")List<Integer> ids); + + List<ExamPaperAnswer> getResult(@Param("list")List<Integer> list); + + List<TeamplatesUserExcelVO> getByTimeOne(); + + 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(@Param("examPaperAnswer") ExamPaperAnswer examPaperAnswer, @Param("templateId") Integer templateId); + + /** + * 鏍规嵁璇曞嵎id鑾峰彇鏈�楂樻垚缁╃瓟鍗� + * @param examPaperAnswer 绛斿嵎 + * @return 鏈�楂樻垚缁╃瓟鍗� + */ + ExamPaperAnswer getPaperOtherExamAnswer(ExamPaperAnswer examPaperAnswer); } -- Gitblit v1.8.0