linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
src/main/java/com/ots/project/exam/mapper/ExamPaperMapper.java
@@ -1,4 +1,5 @@
package com.ots.project.exam.mapper;
import com.ots.project.exam.domain.ExamPaper;
import com.ots.project.exam.domain.TExamPaper;
import com.ots.project.exam.dto.KeyValue;
@@ -8,22 +9,38 @@
import com.ots.project.exam.viewmodel.ExamPaperPageVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
@Mapper
public interface ExamPaperMapper extends BaseExamMapper<ExamPaper> {
    int deleteByPrimaryKey(Integer id);
    int insert(ExamPaper record);
    int insertSelective(ExamPaper record);
    ExamPaper selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(ExamPaper record);
    int updateByPrimaryKey(ExamPaper record);
    List<ExamPaper> page(ExamPaperPageRequestVM requestVM);
    List<ExamPaper> taskExamPage(ExamPaperPageRequestVM requestVM);
    List<ExamPaper> studentPage(ExamPaperPageVM requestVM);
    List<PaperInfo> indexPaper(PaperFilter paperFilter);
    Integer selectAllCount();
    List<KeyValue> selectCountByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
    int updateTaskPaper(@Param("taskId") Integer taskId, @Param("paperIds") List<Integer> paperIds);
    int clearTaskPaper(@Param("paperIds") List<Integer> paperIds);
}