UserPaperMapper.java 749 字节
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);
}