package cn.reghao.tnb.content.app.exam.db.mapper;

import cn.reghao.jutil.jdk.web.db.BaseMapper;
import cn.reghao.jutil.jdk.web.db.Page;
import cn.reghao.tnb.content.app.exam.model.po.Paper;
import cn.reghao.tnb.content.app.exam.model.query.PaperQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author reghao
 * @date 2024-08-24 23:44:07
 */
@Mapper
public interface PaperMapper extends BaseMapper<Paper> {
    void deleteById(int paperId);

    int countByCriteria(PaperQuery paperQuery);
    List<Paper> findPaperByPage(Page page, @Param("paperQuery") PaperQuery paperQuery);
}
