package com.ots.project.exam.mapper; import com.ots.project.exam.domain.ExamPaperAnswer; import com.ots.project.exam.dto.KeyValue; import com.ots.project.exam.viewmodel.ExamPaperAnswerPageVM; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; @Mapper public interface ExamPaperAnswerMapper extends BaseMapper { int deleteByPrimaryKey(Integer id); int insert(ExamPaperAnswer record); int insertSelective(ExamPaperAnswer record); ExamPaperAnswer selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(ExamPaperAnswer record); int updateByPrimaryKey(ExamPaperAnswer record); List studentPage(ExamPaperAnswerPageVM requestVM); Integer selectAllCount(); List selectCountByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime); ExamPaperAnswer getByPidUid(@Param("pid") Integer paperId, @Param("uid") Integer uid); }