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 { /** * 查询试卷模块 * * @param id 试卷模块ID * @return 试卷模块 */ public ExamPaperModule selectExamPaperModuleById(Long id); /** * 查询试卷模块列表 * * @param examPaperModule 试卷模块 * @return 试卷模块集合 */ public List 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 getByIds(List ids, SFunction... columns); ExamPaperModulePlus getById(Long id, SFunction... columns); Map getMapByIds(List ids, SFunction... columns); List getByIds(List ids); Map getMapByIds(List ids); /** * @param field sum 字段 * @param where 条件 * @param tClass 返回类型 * @param * @return */ T sum(String field, String where, Class tClass); Long count(String where); List countByGroupBy(String select, String where, String groupby, Class tClass); boolean addQuestion(Long moduleId,Long questionId); boolean addQuestion(Long moduleId,List questionIds); boolean removeQuestion(Long moduleId,List questionIds); }