package com.gkhy.exam.system.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.gkhy.exam.common.api.CommonPage;
|
import com.gkhy.exam.system.domain.ExExamPaper;
|
|
/**
|
* <p>
|
* 考卷(组卷)表 服务类
|
* </p>
|
*
|
* @author kzy
|
* @since 2024-06-05 15:07:36
|
*/
|
public interface ExExamPaperService extends IService<ExExamPaper> {
|
/**
|
* 根据条件分页查询考卷列表(后台接口)
|
* @param examPaper
|
* @return
|
*/
|
CommonPage selectExamPaperList(ExExamPaper examPaper);
|
|
|
/**
|
* 根据id查询试卷信息(后台接口)
|
*
|
* @param paperId 试卷ID
|
* @return 试卷信息
|
*/
|
public ExExamPaper selectExamPaperById(Long paperId);
|
|
|
/**
|
* 新增试卷
|
*
|
* @param examPaper 试卷信息
|
* @return 结果
|
*/
|
public int insertExamPaper(ExExamPaper examPaper);
|
|
|
/**
|
* 修改试卷
|
*
|
* @param examPaper 试卷信息
|
* @return 结果
|
*/
|
public int updateExamPaper(ExExamPaper examPaper);
|
|
/**
|
* 删除试卷信息
|
*
|
* @param paperId 试卷ID
|
* @return 结果
|
*/
|
public int deleteExamPaperById(Long paperId);
|
|
/**
|
* 校验考卷名称是否唯一
|
*
|
* @param examPaper 考卷信息
|
* @return boolean
|
*/
|
public boolean checkNameUnique(ExExamPaper examPaper);
|
|
/**
|
* 更新试卷状态
|
* @param paperId
|
* @param status
|
* @return
|
*/
|
public int changeExamPaperStatus(Long paperId,Integer status);
|
|
|
|
}
|