2021-01-07 11:34:56 +07:00

29 lines
930 B
Java

package com.jasamedika.medifirst2000.dao;
import java.util.List;
import java.util.Map;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import com.jasamedika.medifirst2000.entities.ProsesCuci;
@Repository("ProsesCuciDao")
public interface ProsesCuciDao extends PagingAndSortingRepository<ProsesCuci, Integer> {
@Query("select count(p.id) from ProsesCuci p")
Integer getCountByKodeProsesCuci();
@Query("select new map(" +
" a.id as id, " +
" a.statusEnabled as statusEnabled, " +
" a.kodeExternal as kodeExternal, " +
" a.namaExternal as namaExternal, " +
" a.kdProsesCuci as kdProsesCuci, " +
" a.prosesCuci as prosesCuci ) " +
" from ProsesCuci a where a.statusEnabled in('true')")
List<Map<String, Object>> getDataProsesCuci();
}