package com.xhkjedu.sstudy.mapper.paper;

import com.xhkjedu.base.TkMapper;
import com.xhkjedu.sstudy.model.paper.TPaperScantronQtype;
import com.xhkjedu.sstudy.vo.paper.PaperScantronQtypeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName PaperScantronQtypeMapper
 * Description 作业答题卡题型表
 * Author WN
 * Date 2020/6/8 16:17
 **/
@Repository
public interface PaperScantronQtypeMapper extends TkMapper<TPaperScantronQtype> {

    /**
     *功能描述 删除--根据paperid
     * @author WN
     * @date 2020/6/11
     * @param  * @param paperid
     * @return void
     */
    void deleteByPaperid(@Param("paperid") Integer paperid);

    /**
     *功能描述  根据作业id获取作业下题型及试题
     * @author WN
     * @date 2020/6/11
     * @param  * @param paperid
     * @return java.util.List<com.xhkjedu.vo.paper.PaperScantronQtypeVo>
     */
    List<PaperScantronQtypeVo> listQtypeScans(@Param("paperid") Integer paperid);

    //取题型以及题型下试题用于处理分析
    List<TPaperScantronQtype> listQtypeScansForAnalyze(@Param("paperid") Integer paperid);

}
