PaperDictMapper.java 691 Bytes
package com.subsidy.mapper;

import com.subsidy.model.PaperDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.vo.paper.QueryPapersVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 试卷字典表 Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-12-03
 */
@Repository
public interface PaperDictMapper extends BaseMapper<PaperDictDO> {

    /**
     * 查看某个课程下的卷子
     * @return
     */
    List<QueryPapersVO> queryPapers(Long courseId,String paperName,Integer paperStatus);

    /**
     * 查看某个卷子有多少人完成 卷子id
     */
    Integer completeCount(Long paperId);
}