package com.zhongzheng.modules.exam.service;

import com.zhongzheng.modules.exam.bo.ExamArrangementQueryBo;
import com.zhongzheng.modules.exam.domain.ExamArrangementStudent;
import com.zhongzheng.modules.exam.vo.ExamArrangementStudentVo;
import com.zhongzheng.modules.exam.bo.ExamArrangementStudentQueryBo;
import com.zhongzheng.modules.exam.bo.ExamArrangementStudentAddBo;
import com.zhongzheng.modules.exam.bo.ExamArrangementStudentEditBo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongzheng.modules.exam.vo.ExamUserVo;

import java.util.Collection;
import java.util.List;

/**
 * 报名考试得学生关联Service接口
 *
 * @author change
 * @date 2021-05-20
 */
public interface IExamArrangementStudentService extends IService<ExamArrangementStudent> {
	/**
	 * 查询单个
	 * @return
	 */
	ExamArrangementStudentVo queryById(Long arrangementId);

	/**
	 * 查询列表
	 */
	List<ExamArrangementStudentVo> queryList(ExamArrangementStudentQueryBo bo);

	/**
	 * 根据新增业务对象插入报名考试得学生关联
	 * @param bo 报名考试得学生关联新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(ExamArrangementStudentAddBo bo);

	/**
	 * 根据编辑业务对象修改报名考试得学生关联
	 * @param bo 报名考试得学生关联编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(ExamArrangementStudentEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<ExamUserVo> queryUserList(ExamArrangementQueryBo bo);

	List<ExamUserVo> querySubList(ExamArrangementQueryBo bo);
}
