25 lines
910 B
Java
25 lines
910 B
Java
package com.jasamedika.medifirst2000.dao;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
import org.springframework.data.repository.query.Param;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import com.jasamedika.medifirst2000.entities.CustomIndexKerja;
|
|
|
|
/**
|
|
* Repository class for CustomIndexKerja
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Repository("CustomIndexKerjaDao")
|
|
public interface CustomIndexKerjaDao extends PagingAndSortingRepository<CustomIndexKerja, String> {
|
|
|
|
@Query("select model from CustomIndexKerja model where model.uraianTugas.id=:id and date(tanggal) >= date(:startDate) and date(tanggal) <= date(:endDate) ")
|
|
List<CustomIndexKerja> findByUraianTugasIdAndTanggalBetween(@Param("id") int id, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
|
|
|
}
|