Update ListTanggalCutiDao.java
Penambahan validasi cuti belum disetujui hanya untuk pengajuan tahun sebelumnya
This commit is contained in:
parent
1e3a960414
commit
aad140b2ca
@ -56,7 +56,8 @@ public interface ListTanggalCutiDao extends PagingAndSortingRepository<ListTangg
|
||||
@Query("select tc from ListTanggalCuti tc " + "inner join tc.planningPegawaiStatus ps "
|
||||
+ "where tc.statusEnabled is true " + "and ps.statusEnabled is true " + "and ps.noSkId is null "
|
||||
+ "and ps.approvalStatus not in (1, 3) " + "and ps.pegawaiId = :idPegawai "
|
||||
+ "and ps.statusPegawaiPlanId = :idJenisPermohonan " + "and tc.tgl between :tglAwal and :tglAkhir")
|
||||
+ "and ps.statusPegawaiPlanId = :idJenisPermohonan " + "and tc.tgl between :tglAwal and :tglAkhir "
|
||||
+ "and ps.tglPengajuan between :tglAwal and :tglAkhir")
|
||||
List<ListTanggalCuti> notApprovedByPermohonan(@Param("idPegawai") Integer idPegawai,
|
||||
@Param("idJenisPermohonan") Integer idJenisPermohonan, @Param("tglAwal") Date tglAwal,
|
||||
@Param("tglAkhir") Date tglAkhir);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user