package com.keao.edu.user.dao;

import com.keao.edu.common.dal.BaseDAO;
import com.keao.edu.user.dto.ExaminationBasicDto;
import com.keao.edu.user.entity.ExaminationBasic;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ExaminationBasicDao extends BaseDAO<Long, ExaminationBasic> {

    int batchUpdate(@Param("exams") List<ExaminationBasic> exams);

    ExaminationBasicDto getExaminationBasic(Integer examId);

    List<ExaminationBasicDto> findExaminationBasics(Map<String, Object> params);
    int countExaminationBasics(Map<String, Object> params);

    /**
     * @describe 获取需要更新状态的考级项目
     * @author Joburgess
     * @date 2020.06.19
     * @return java.util.List<com.keao.edu.user.entity.ExaminationBasic>
     */
    List<ExaminationBasic> getNeedUpdateStatusExams();
	
}
