xiangpei
2024-05-14 87c1bdac0c88d208cd2786913742d818e4d2debb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.mindskip.xzs.repository;
 
import com.mindskip.xzs.domain.Question;
import com.mindskip.xzs.domain.other.KeyValue;
import com.mindskip.xzs.domain.vo.QuestionVO;
import com.mindskip.xzs.viewmodel.admin.question.QuestionPageRequestVM;
import com.mindskip.xzs.viewmodel.student.question.answer.QuestionPageStudentRequestVM;
import com.mindskip.xzs.viewmodel.student.question.answer.QuestionPageStudentResponseVM;
import com.mindskip.xzs.vo.QuestionExportVO;
import com.mindskip.xzs.vo.QuestionImportVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
@Mapper
public interface QuestionMapper extends BaseMapper<Question> {
 
    List<Question> page(QuestionPageRequestVM requestVM);
 
    List<Question> selectByIds(@Param("ids") List<Integer> ids);
    List<QuestionVO> getVoByIds(@Param("ids") List<Integer> ids);
 
    Integer selectAllCount();
 
    List<KeyValue> selectCountByDate(@Param("startTime") Date startTime,@Param("endTime") Date endTime);
 
    List<Question> getAll();
 
    List<QuestionImportVO> export(@Param("query") QuestionExportVO query);
 
    List<QuestionPageStudentResponseVM> selectQuestion(QuestionPageStudentRequestVM model);
 
    QuestionVO selectContentById(Integer id);
 
    QuestionVO getAnswer(Integer id);
}