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.KirimBarang; @Repository("KirimBarangDao") public interface KirimBarangDao extends PagingAndSortingRepository { @Query("select count(k.noRec) from KirimBarang k") Integer getCountByKodeBarang(); @Query("select count(p.noRec) from KirimBarang 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); }