2021-01-07 11:34:56 +07:00

23 lines
867 B
Java

package com.jasamedika.medifirst2000.dao;
import java.util.Date;
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.PelayananTpn;
/**
* Repository class for PAPAnamesis
*
* @author Askur
*/
@Repository("PelayananTpnDao")
public interface PelayananTpnDao extends PagingAndSortingRepository<PelayananTpn, String> {
@Query("select model from PelayananTpn model where model.pelayananProduksi.pasienDaftar.pasienDaftar.pasien.noCm=:noCm and model.pelayananProduksi.pasienDaftar.pasienDaftar.tglRegistrasi=:tglInput")
public PelayananTpn findPelayananTpnByNoCmAndTglInput(@Param("noCm") String noCm,@Param("tglInput") Date tglInput);
}