package com.mwt.oes.dao;

import com.mwt.oes.domain.PaperQue;
import com.mwt.oes.domain.PaperQueExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PaperQueMapper {
    int countByExample(PaperQueExample example);

    int deleteByExample(PaperQueExample example);

    int deleteByPrimaryKey(Integer queId);

    int insert(PaperQue record);

    int insertSelective(PaperQue record);

    List<PaperQue> selectByExample(PaperQueExample example);

    PaperQue selectByPrimaryKey(Integer queId);

    int updateByExampleSelective(@Param("record") PaperQue record, @Param("example") PaperQueExample example);

    int updateByExample(@Param("record") PaperQue record, @Param("example") PaperQueExample example);

    int updateByPrimaryKeySelective(PaperQue record);

    int updateByPrimaryKey(PaperQue record);

    /**
     * 根据试卷 ID 获取当前试卷的所有题目
     * @param paperId
     * @return
     */
    List<PaperQue> selectByPaperId(@Param("paper_id") Integer paperId);
}