25 lines
812 B
Java
25 lines
812 B
Java
/**
|
|
*
|
|
*/
|
|
package com.jasamedika.medifirst2000.dao;
|
|
|
|
import java.util.Date;
|
|
import java.util.Optional;
|
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
import org.springframework.data.jpa.repository.Query;
|
|
import org.springframework.data.repository.query.Param;
|
|
|
|
import com.jasamedika.medifirst2000.entities.TargetRemunDokterDetail;
|
|
|
|
/**
|
|
* @author Salman
|
|
* @since Apr 3, 2023 7:55:36 AM
|
|
*/
|
|
public interface TargetRemunDokterDetailDao extends JpaRepository<TargetRemunDokterDetail, String> {
|
|
@Query("select trd from TargetRemunDokterDetail trd " + "where trd.pegawaiId = :pegawaiId "
|
|
+ "and trd.tmt between :tglAwal and :tglAkhir")
|
|
TargetRemunDokterDetail findByPegawaiIdAndTmt(@Param("pegawaiId") Integer idPegawai,
|
|
@Param("tglAwal") Date tglAwal, @Param("tglAkhir") Date tglAkhir);
|
|
}
|