package com.ssj.dao.course.dao;

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


@Repository
public interface ICourseScanDao extends JpaRepository<CourseScanHis, String>{

	@Query(nativeQuery = true, value = " select  *  from   tb_course_scanhis  where session_id =?1  ")
	CourseScanHis getSessionHis(String sessionId);
	@Query(nativeQuery = true, value = " select  *  from   tb_course_scanhis  where session_id =?1 and state=?2 ")
	CourseScanHis getSessionHis(String sessionId,int state);

}
