Update LogbookKinerjaDao.java

Perbaikan service validasi kontrak tersedia saat verif logbook skor
This commit is contained in:
salmanoe 2022-07-05 17:11:24 +07:00
parent e94cf37b8d
commit d38ac5f192

View File

@ -220,10 +220,8 @@ public interface LogbookKinerjaDao extends PagingAndSortingRepository<LogbookKin
@Param("unitKerjaId") Integer idUnitKerja, @Param("subunitKerjaId") Integer idSubunitKerja,
@Param("pegawaiId") Integer idPegawai);
@Query("select new Map(lkt.noRec as noRec,lkt.jabatanId as jabatanId) "
+ "from LogbookKinerja lkt, MapPegawaiJabatanToUnitKerja mpj " + "where lkt.pegawaiId = mpj.pegawaiId "
+ "and lkt.jabatanId = mpj.jabatanId " + "and mpj.statusEnabled is true "
+ "and to_char(lkt.bulan,'yyyy-MM') = :bulan " + "and lkt.pegawaiId = :pegawaiId "
@Query("select new Map(lkt.noRec as noRec,lkt.jabatanId as jabatanId) " + "from LogbookKinerja lkt "
+ "where to_char(lkt.bulan,'yyyy-MM') = :bulan " + "and lkt.pegawaiId = :pegawaiId "
+ "and lkt.indikatorKinerjaId = :indikatorId " + "and lkt.statusEnabled is true "
+ "and lkt.statusVerifikasi is true")
Map<String, Object> findKontrakByLogbook(@Param("bulan") String bulan, @Param("pegawaiId") Integer idPegawai,