package com.reyun.repository;

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

import com.reyun.model.ReportLog;

public interface ReportLogRepository extends JpaRepository<ReportLog, Long> {
	
	@Query(value="select * from report_log where report_name = ?1 and category=?2 order by modify_date desc limit 1",nativeQuery=true)
	ReportLog findByReportNameAndCategory(String reportName, String category);
	
}
