package com.ssj.dao.kmt.kmt.dao;

import com.ssj.bean.kmt.kmt.domain.KmtCourseRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


@Repository
public interface  KmtCourseRecordDao extends JpaRepository<KmtCourseRecord, String>{

	@Query(nativeQuery = true, value = "  SELECT * from kmt_course_record t where t.course_know_id=?1 ORDER BY t.create_time DESC LIMIT 1   ")
	public KmtCourseRecord findKmtCourseRecord(String courseKnowId);
	
	
}
