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.PermintaanBarangDariRuangan; @Repository("PermintaanBarangDariRuanganDao") public interface PermintaanBarangDariRuanganDao extends PagingAndSortingRepository { @Query("select count(p.noRec) from PermintaanBarangDariRuangan p where month(p.tglOrder)=:monthNow and day(p.tglOrder)=:dayNow and year(p.tglOrder)=:yearNow") Integer getCountByDayMonthAndYear(@Param("dayNow") Integer day, @Param("monthNow") Integer month, @Param("yearNow") Integer year); }