linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
src/main/java/com/ots/project/exam/service/ExamPaperQuestionCustomerAnswerService.java
@@ -1,18 +1,38 @@
package com.ots.project.exam.service;
import com.github.pagehelper.PageInfo;
import com.ots.project.exam.domain.ExamPaperQuestionCustomerAnswer;
import com.ots.project.exam.dto.ExamPaperAnswerUpdate;
import com.ots.project.exam.viewmodel.ExamPaperSubmitItemVM;
import com.ots.project.exam.viewmodel.QuestionPageStudentRequestVM;
import java.util.List;
public interface ExamPaperQuestionCustomerAnswerService extends BaseService<ExamPaperQuestionCustomerAnswer> {
    PageInfo<ExamPaperQuestionCustomerAnswer> studentPage(QuestionPageStudentRequestVM requestVM);
    List<ExamPaperQuestionCustomerAnswer> selectListByPaperAnswerId(Integer id);
    /**
     * 试卷提交答案入库
     *
     * @param examPaperQuestionCustomerAnswers List<ExamPaperQuestionCustomerAnswer>
     */
    void insertList(List<ExamPaperQuestionCustomerAnswer> examPaperQuestionCustomerAnswers);
    /**
     * 试卷问题答题信息转成ViewModel 传给前台
     *
     * @param qa ExamPaperQuestionCustomerAnswer
     * @return ExamPaperSubmitItemVM
     */
    ExamPaperSubmitItemVM examPaperQuestionCustomerAnswerToVM(ExamPaperQuestionCustomerAnswer qa);
    Integer selectAllCount();
    List<Integer> selectMothCount();
    int updateScore(List<ExamPaperAnswerUpdate> examPaperAnswerUpdates);
}