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

@Repository("PelayananAdmixtureDao")
public interface PelayananAdmixtureDao extends PagingAndSortingRepository<PelayananProduksi, String> {
	
	@Query("select count(p.id) from PelayananProduksi p where :dateNow=:dateNow  ")
	Integer getCountByMonthAndYear(@Param("dateNow") Date dateNow);	

}
