package com.jasamedika.medifirst2000.dao;

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.KartuPengendali;

@Repository
public interface KartuPengendaliDao extends PagingAndSortingRepository<KartuPengendali, Integer>{

	@Query("select model.volumeBarang from DetailSpekAnggaran model where model.noRec=:noRec")
	public float checkVolumeBarang(@Param("noRec") String noRec);

	@Query("select model from KartuPengendali model where model.noRec=:noRec ")
	public KartuPengendali findByNoRec(@Param("noRec") String noRec);
	
}
