Update LogbookKinerjaDetailDao
Penambahan SQL untuk service hitung capaian total dari entri working record
This commit is contained in:
parent
357c6b4c22
commit
536600138d
@ -48,6 +48,15 @@ public interface LogbookKinerjaDetailDao extends PagingAndSortingRepository<Logb
|
||||
@Param("jabatanId") Integer idJabatan, @Param("indikatorId") Integer idIndikator,
|
||||
@Param("bulan") String bulan);
|
||||
|
||||
@Query("select new Map(lkd.logbookKinerjaId as logbookId,sum(lkd.capaian) as sumCapaian,ikm.satuanIndikatorId as satuanId) "
|
||||
+ "from LogbookKinerjaDetail lkd " + "inner join lkd.logbookKinerja lk "
|
||||
+ "inner join lk.indikatorKinerja ikm " + "where lkd.statusEnabled is true "
|
||||
+ "and lkd.statusVerifikasi is true " + "and lk.statusEnabled is true " + "and ikm.statusEnabled is true "
|
||||
+ "and lk.noRec = :noRec " + "and ikm.satuanIndikatorId not in (:listSatuanId) "
|
||||
+ "group by lkd.logbookKinerjaId, ikm.satuanIndikatorId")
|
||||
List<Map<String, Object>> findSumCapaianByKontrak(@Param("noRec") String noRec,
|
||||
@Param("listSatuanId") List<Integer> listIdSatuan);
|
||||
|
||||
@Query("select new Map(lkd.logbookKinerjaId as logbookId,avg(lkd.capaian) as avgCapaian,ikm.satuanIndikatorId as satuanId) "
|
||||
+ "from LogbookKinerjaDetail lkd " + "inner join lkd.logbookKinerja lk "
|
||||
+ "inner join lk.indikatorKinerja ikm " + "where lkd.statusEnabled is true "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user