93 lines
2.5 KiB
Java
93 lines
2.5 KiB
Java
package com.luqj.exam.service;
|
|
import java.util.Map;
|
|
import java.util.List;
|
|
import com.luqj.exam.domain.ExamPaperModule;
|
|
import com.luqj.exam.domain.ExamPaperModulePlus;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
|
/**
|
|
* 试卷模块Service接口
|
|
*
|
|
* @author ruoyi
|
|
* @date 2021-08-10
|
|
*/
|
|
public interface IExamPaperModuleService extends IService<ExamPaperModulePlus>
|
|
{
|
|
/**
|
|
* 查询试卷模块
|
|
*
|
|
* @param id 试卷模块ID
|
|
* @return 试卷模块
|
|
*/
|
|
public ExamPaperModule selectExamPaperModuleById(Long id);
|
|
|
|
/**
|
|
* 查询试卷模块列表
|
|
*
|
|
* @param examPaperModule 试卷模块
|
|
* @return 试卷模块集合
|
|
*/
|
|
public List<ExamPaperModule> selectExamPaperModuleList(ExamPaperModule examPaperModule);
|
|
|
|
/**
|
|
* 新增试卷模块
|
|
*
|
|
* @param examPaperModule 试卷模块
|
|
* @return 结果
|
|
*/
|
|
public int insertExamPaperModule(ExamPaperModule examPaperModule);
|
|
|
|
/**
|
|
* 修改试卷模块
|
|
*
|
|
* @param examPaperModule 试卷模块
|
|
* @return 结果
|
|
*/
|
|
public int updateExamPaperModule(ExamPaperModule examPaperModule);
|
|
|
|
/**
|
|
* 批量删除试卷模块
|
|
*
|
|
* @param ids 需要删除的试卷模块ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteExamPaperModuleByIds(Long[] ids);
|
|
|
|
/**
|
|
* 删除试卷模块信息
|
|
*
|
|
* @param id 试卷模块ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteExamPaperModuleById(Long id);
|
|
|
|
List<ExamPaperModulePlus> getByIds(List<Long> ids, SFunction<ExamPaperModulePlus, ?>... columns);
|
|
|
|
ExamPaperModulePlus getById(Long id, SFunction<ExamPaperModulePlus, ?>... columns);
|
|
|
|
Map<Long, ExamPaperModulePlus> getMapByIds(List<Long> ids, SFunction<ExamPaperModulePlus, ?>... columns);
|
|
|
|
List<ExamPaperModulePlus> getByIds(List<Long> ids);
|
|
|
|
Map<Long, ExamPaperModulePlus> getMapByIds(List<Long> ids);
|
|
|
|
/**
|
|
* @param field sum 字段
|
|
* @param where 条件
|
|
* @param tClass 返回类型
|
|
* @param <T>
|
|
* @return
|
|
*/
|
|
<T> T sum(String field, String where, Class<T> tClass);
|
|
|
|
Long count(String where);
|
|
|
|
<T> List<T> countByGroupBy(String select, String where, String groupby, Class<T> tClass);
|
|
|
|
boolean addQuestion(Long moduleId,Long questionId);
|
|
|
|
boolean addQuestion(Long moduleId,List<Long> questionIds);
|
|
|
|
boolean removeQuestion(Long moduleId,List<Long> questionIds);
|
|
}
|