package com.keao.edu.user.dao;


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

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

public interface TeacherDao extends BaseDAO<Integer, Teacher> {

    List<Teacher> getWithTeachers(@Param("teacherIds") List<Integer> teacherIds);

    int batchUpdate(@Param("teachers") List<Teacher> teachers);

    /**
     * 获取教师声部名
     * @param teacherIds
     * @return
     */
    List<Map<Integer, String>> queryTeacherSubjectNames(@Param("teacherIds") Set<Integer> teacherIds);
}
