Update PegawaiDao

Perbaikan query daftar pegawai berulang tahun
This commit is contained in:
Salman Manoe 2022-01-18 18:08:04 +07:00
parent efd28ab3cb
commit 46d56a4291

View File

@ -1084,7 +1084,8 @@ public interface PegawaiDao extends PagingAndSortingRepository<Pegawai, Integer>
@Param("pegawaiId") Integer idPegawai);
@Query("select new Map(pg.id as id,pg.namaLengkap as namaLengkap,pg.jenisKelaminId as jenisKelaminId) "
+ "from Pegawai pg " + "where pg.statusEnabled is true " + "and to_char(pg.tglLahir,'MM-dd') = :tglLahir")
+ "from Pegawai pg " + "where pg.statusEnabled is true " + "and to_char(pg.tglLahir,'MM-dd') = :tglLahir "
+ "and pg.kedudukanId not in (3,4,5,6,24,25,26,28,29) " + "order by pg.namaLengkap")
public List<Map<String, Object>> findByBirthDate(@Param("tglLahir") String tglLahir);
}