package com.ssj.dao.course.dao;

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

import com.ssj.bean.course.domain.CourseLearn;



/** 
 * @author  wuwen 
 * @version 2018年12月12日11:20:22
 * 类说明 
 */
@Repository
public interface CourseLearnDao extends  JpaRepository<CourseLearn, String> {

	@Query(nativeQuery = true, value = " SELECT * from tb_course_learn t where t.course_name=?1 AND t.vip_id=?2 ORDER BY t.create_time DESC LIMIT 1 ")
	public CourseLearn findCourseLearnByFlowId(String courseName, String vipId);
	
}
