UserPaperMapper.java
911 字节
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.skua.modules.edu.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.skua.modules.edu.entity.UserPaper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 在线考试
*/
public interface UserPaperMapper extends BaseMapper<UserPaper> {
/***
* 获取用户 答题卡总得分
* @param userPaperId
* @return
*/
public String queryPaperScore(@Param("userPaperId") String userPaperId);
/***
* 根据试卷编号、用户编号查询最近的考试记录
* @param paperId
* @param userId
* @return
*/
public UserPaper queryLastOne(String paperId, String userId);
public int queryPaperCount(String paperId, String userId);
/***
* 设置试卷的考试排名
* @param paperId
* @return
*/
public int changeRankByPaperId( @Param("paperId") String paperId);
}