17 lines
779 B
Java
17 lines
779 B
Java
package com.jasamedika.medifirst2000.dao;
|
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
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.DraftPeraturan;
|
|
|
|
@Repository("DraftPeraturanDao")
|
|
public interface DraftPeraturanDao extends PagingAndSortingRepository<DraftPeraturan, Integer>,JpaSpecificationExecutor{
|
|
|
|
@Query("select count(d.id) from DraftPeraturan d where month(d.tglPeraturan)=:month and year(d.tglPeraturan)=:year")
|
|
public Integer CountbyMonthYear(@Param("month") Integer month, @Param("year") Integer year);
|
|
}
|