package com.mindskip.xzs.service; import com.mindskip.xzs.domain.ExamPaperAnswer; import com.mindskip.xzs.domain.User; import com.mindskip.xzs.viewmodel.student.exam.ExamPaperSubmitVM; import com.mindskip.xzs.viewmodel.student.exampaper.ExamPaperAnswerPageVM; import com.mindskip.xzs.viewmodel.student.exampaper.ExamPaperSubmitResult; import com.mindskip.xzs.viewmodel.teacher.analyze.PaperClassesRequest; import com.mindskip.xzs.viewmodel.teacher.paper.ExamPaperAnswerPageRequestVM; import com.github.pagehelper.PageInfo; import java.util.List; /** * @version 2.2.0 * @description: 答卷 * Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司 * @date 2021 /9/7 9:45 */ public interface ExamPaperAnswerService extends BaseService { /** * 学生考试记录分页 * * @param requestVM 过滤条件 * @return PageInfo page info */ PageInfo studentPage(ExamPaperAnswerPageVM requestVM); /** * 计算试卷提交结果(不入库) * * @param examPaperSubmitVM the exam paper submit vm * @param user the user * @return exam paper submit result */ ExamPaperSubmitResult calculateExamPaperAnswer(ExamPaperSubmitVM examPaperSubmitVM, User user); /** * 试卷批改 * * @param examPaperSubmitVM examPaperSubmitVM * @param user the user * @return String exam paper submit result */ ExamPaperSubmitResult judge(ExamPaperSubmitVM examPaperSubmitVM, User user); /** * 试卷答题信息转成ViewModel 传给前台 * * @param id 试卷id * @return ExamPaperSubmitVM exam paper submit vm */ ExamPaperSubmitVM examPaperAnswerToVM(Integer id); /** * 获取所有答卷数量 * * @return the integer */ Integer selectAllCount(); /** * 获取月答卷数量 * * @return the list */ List selectMothCount(); /** * 教师端 答卷分页 * * @param requestVM the request vm * @return the page info */ PageInfo teacherPage(ExamPaperAnswerPageRequestVM requestVM); /** * 管理端 答卷分页 * * @param requestVM the request vm * @return the page info */ PageInfo adminPage(com.mindskip.xzs.viewmodel.admin.paper.ExamPaperAnswerPageRequestVM requestVM); /** * 获取班级试卷 * * @param requestVM the request vm * @return the list */ List classPaper(PaperClassesRequest requestVM); }