package com.ssj.dao.sys.imlibuser.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.ssj.bean.sys.imlibuser.TbClassTeacherTemp;


@Repository
public interface TbClassTeacherTempDao extends JpaRepository<TbClassTeacherTemp, String> {

	@Query(nativeQuery = true, value = " SELECT * from tb_class_teacher_temp t where t.teacher_id=?1 AND t.lib_id=?2 AND t.teacher_name is NOT NULL ORDER BY t.`status` DESC LIMIT 1 ")
	TbClassTeacherTemp getTbLibImTeacherTempByLibId(String libId,String teacherId);
	
}
