package com.ssj.dao.sys.train.dao;

import java.util.List;

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

import com.ssj.bean.sys.train.bean.ExamInfo;


@Repository
public interface ExamInfoDao extends JpaRepository<ExamInfo, String> {

	@Query(nativeQuery = true,value = "SELECT * from tr_exam_info t WHERE t.status=1 and t.video_id=?1 ORDER BY t.exam_num asc ")
	List<ExamInfo> findExamInfoByVideoId(String videoId);

}
