Update PermohonanStatusPegawaiImpl.java

Pengganti cuti bersama mulai tahun 2023
This commit is contained in:
Salman Manoe 2023-04-17 11:10:31 +07:00
parent b1dd819b20
commit 6a6a7d5769

View File

@ -427,6 +427,7 @@ public class PermohonanStatusPegawaiImpl implements PermohonanStatusPegawaiServi
if (listMap.size() == 2) { if (listMap.size() == 2) {
if (Arrays.asList(Master.ShiftKerja.TUJUH_BELAS_JAM_SHIFT) if (Arrays.asList(Master.ShiftKerja.TUJUH_BELAS_JAM_SHIFT)
.contains(Integer.parseInt(listMap.get(1).get("idShift").toString()))) { .contains(Integer.parseInt(listMap.get(1).get("idShift").toString()))) {
if (Integer.parseInt(year) < 2023) {
countDataHabsen += 2; countDataHabsen += 2;
} else { } else {
countDataHabsen += 1; countDataHabsen += 1;
@ -434,6 +435,9 @@ public class PermohonanStatusPegawaiImpl implements PermohonanStatusPegawaiServi
} else { } else {
countDataHabsen += 1; countDataHabsen += 1;
} }
} else {
countDataHabsen += 1;
}
} else { } else {
// cuti tahunan di tanggal cuti bersama // cuti tahunan di tanggal cuti bersama
List<Date> tglCutiTahunanDiTglCutiBersama = jatahCutiDanIzinDao List<Date> tglCutiTahunanDiTglCutiBersama = jatahCutiDanIzinDao
@ -442,6 +446,7 @@ public class PermohonanStatusPegawaiImpl implements PermohonanStatusPegawaiServi
if (listMap.size() == 2) { if (listMap.size() == 2) {
if (Arrays.asList(Master.ShiftKerja.TUJUH_BELAS_JAM_SHIFT) if (Arrays.asList(Master.ShiftKerja.TUJUH_BELAS_JAM_SHIFT)
.contains(Integer.parseInt(listMap.get(1).get("idShift").toString()))) { .contains(Integer.parseInt(listMap.get(1).get("idShift").toString()))) {
if (Integer.parseInt(year) < 2023) {
countDataHabsen += 2; countDataHabsen += 2;
} else { } else {
countDataHabsen += 1; countDataHabsen += 1;
@ -449,6 +454,9 @@ public class PermohonanStatusPegawaiImpl implements PermohonanStatusPegawaiServi
} else { } else {
countDataHabsen += 1; countDataHabsen += 1;
} }
} else {
countDataHabsen += 1;
}
} }
} }
} }