90 lines
2.5 KiB
Java
90 lines
2.5 KiB
Java
package com.luqj.exam.service;
|
|
import java.util.Map;
|
|
import java.util.List;
|
|
import com.luqj.exam.domain.ExamStudentPaper;
|
|
import com.luqj.exam.domain.ExamStudentPaperPlus;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
|
|
/**
|
|
* 学生考试试卷实例Service接口
|
|
*
|
|
* @author ruoyi
|
|
* @date 2021-07-23
|
|
*/
|
|
public interface IExamStudentPaperService extends IService<ExamStudentPaperPlus>
|
|
{
|
|
/**
|
|
* 查询学生考试试卷实例
|
|
*
|
|
* @param id 学生考试试卷实例ID
|
|
* @return 学生考试试卷实例
|
|
*/
|
|
public ExamStudentPaper selectExamStudentPaperById(Long id);
|
|
|
|
/**
|
|
* 查询学生考试试卷实例列表
|
|
*
|
|
* @param examStudentPaper 学生考试试卷实例
|
|
* @return 学生考试试卷实例集合
|
|
*/
|
|
public List<ExamStudentPaper> selectExamStudentPaperList(ExamStudentPaper examStudentPaper);
|
|
|
|
/**
|
|
* 新增学生考试试卷实例
|
|
*
|
|
* @param examStudentPaper 学生考试试卷实例
|
|
* @return 结果
|
|
*/
|
|
public int insertExamStudentPaper(ExamStudentPaper examStudentPaper);
|
|
|
|
/**
|
|
* 修改学生考试试卷实例
|
|
*
|
|
* @param examStudentPaper 学生考试试卷实例
|
|
* @return 结果
|
|
*/
|
|
public int updateExamStudentPaper(ExamStudentPaper examStudentPaper);
|
|
|
|
/**
|
|
* 批量删除学生考试试卷实例
|
|
*
|
|
* @param ids 需要删除的学生考试试卷实例ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteExamStudentPaperByIds(Long[] ids);
|
|
|
|
/**
|
|
* 删除学生考试试卷实例信息
|
|
*
|
|
* @param id 学生考试试卷实例ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteExamStudentPaperById(Long id);
|
|
|
|
List<ExamStudentPaperPlus> getByIds(List<Long> ids, SFunction<ExamStudentPaperPlus, ?>... columns);
|
|
|
|
ExamStudentPaperPlus getById(Long id, SFunction<ExamStudentPaperPlus, ?>... columns);
|
|
|
|
Map<Long, ExamStudentPaperPlus> getMapByIds(List<Long> ids, SFunction<ExamStudentPaperPlus, ?>... columns);
|
|
|
|
List<ExamStudentPaperPlus> getByIds(List<Long> ids);
|
|
|
|
Map<Long, ExamStudentPaperPlus> 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 additionalInfo(List<ExamStudentPaper> list);
|
|
}
|