Merge branch 'ade/absensi/remove-keterlambatan' into prod/no-cron
This commit is contained in:
commit
f9c60273f3
@ -276,6 +276,7 @@ public final class Master {
|
||||
public static final class MonitoringAbsensi {
|
||||
public static final Integer BATAS_MULTI_FINGERPRINT = 10; // 10_Menit
|
||||
public static final Long BATAS_TERLAMBAT = 15L; // 15_Menit
|
||||
public static final Long BATAS_TERLAMBAT_01062026 = 0L; // 15_Menit
|
||||
}
|
||||
|
||||
public static final class NilaiKelompokJabatan {
|
||||
|
||||
@ -512,9 +512,16 @@ public class MonitoringAbsenServiceImpl extends BaseVoServiceImpl implements Mon
|
||||
if (((Integer) jamEfektif.get("hariKerja")) != 0) {
|
||||
harikerja += (Integer) jamEfektif.get("hariKerja");
|
||||
kehadiran.put("pulangAwal", reduceTime(jadwalPulang, absensiDate));
|
||||
if (terlambat > 15) {
|
||||
|
||||
if((absensiMasuk.before(new Date(1780272000000L)) || absensiMasuk.equals(new Date(1780272000000L)))){
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT) {
|
||||
kehadiran.put("terlambat", terlambat);
|
||||
}
|
||||
}else{
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT_01062026) {
|
||||
kehadiran.put("terlambat", terlambat);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1046,12 +1053,22 @@ public class MonitoringAbsenServiceImpl extends BaseVoServiceImpl implements Mon
|
||||
dataPM.put("absensiMasuk", sdf.format(time));
|
||||
terlambat = reduceTime(absensiDate, jadwalMasuk);
|
||||
absensiMasuk = absensiDate;
|
||||
|
||||
if((absensiMasuk.before(new Date(1780272000000L)) || absensiMasuk.equals(new Date(1780272000000L)))){
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT) {
|
||||
jumlahCountTerlambat += 1;
|
||||
jumlahTerlambat += terlambat;
|
||||
dataPM.put("terlambat", terlambat);
|
||||
dataPM.put("telat", terlambat.toString());
|
||||
}
|
||||
}else{
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT_01062026) {
|
||||
jumlahCountTerlambat += 1;
|
||||
jumlahTerlambat += terlambat;
|
||||
dataPM.put("terlambat", terlambat);
|
||||
dataPM.put("telat", terlambat.toString());
|
||||
}
|
||||
}
|
||||
} else if (count == index) {
|
||||
dataPM.put("absensiPulang", sdf.format(time));
|
||||
kelebihanJamKerja = reduceTime(absensiDate, jadwalPulang);
|
||||
@ -1198,12 +1215,23 @@ public class MonitoringAbsenServiceImpl extends BaseVoServiceImpl implements Mon
|
||||
data.put("absensiMasuk", sdf.format(time));
|
||||
terlambat = reduceTime(absensiDate, jadwalMasuk);
|
||||
absensiMasuk = absensiDate;
|
||||
|
||||
if((absensiMasuk.before(new Date(1780272000000L)) || absensiMasuk.equals(new Date(1780272000000L)))){
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT) {
|
||||
jumlahCountTerlambat += 1;
|
||||
jumlahTerlambat += terlambat;
|
||||
data.put("terlambat", terlambat);
|
||||
data.put("telat", terlambat.toString());
|
||||
}
|
||||
}else{
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT_01062026) {
|
||||
jumlahCountTerlambat += 1;
|
||||
jumlahTerlambat += terlambat;
|
||||
data.put("terlambat", terlambat);
|
||||
data.put("telat", terlambat.toString());
|
||||
}
|
||||
}
|
||||
|
||||
} else if (count == index) {
|
||||
data.put("absensiPulang", sdf.format(time));
|
||||
kelebihanJamKerja = reduceTime(absensiDate, jadwalPulang);
|
||||
@ -1782,12 +1810,22 @@ public class MonitoringAbsenServiceImpl extends BaseVoServiceImpl implements Mon
|
||||
}
|
||||
terlambat = reduceTime(absensiDate, jadwalMasuk);
|
||||
absensiMasuk = absensiDate;
|
||||
|
||||
if((absensiMasuk.before(new Date(1780272000000L)) || absensiMasuk.equals(new Date(1780272000000L)))){
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT) {
|
||||
jumlahCountTerlambat += 1;
|
||||
jumlahTerlambat += terlambat;
|
||||
dataPM.put("terlambat", terlambat);
|
||||
dataPM.put("telat", terlambat.toString());
|
||||
}
|
||||
}else{
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT_01062026) {
|
||||
jumlahCountTerlambat += 1;
|
||||
jumlahTerlambat += terlambat;
|
||||
dataPM.put("terlambat", terlambat);
|
||||
dataPM.put("telat", terlambat.toString());
|
||||
}
|
||||
}
|
||||
} else if (count == index) {
|
||||
listTrNo.add(Integer.parseInt(temp.get("tr_no").toString()));
|
||||
dataPM.put("absensiPulang", sdf.format(time));
|
||||
@ -2091,12 +2129,23 @@ public class MonitoringAbsenServiceImpl extends BaseVoServiceImpl implements Mon
|
||||
}
|
||||
terlambat = reduceTime(absensiDate, jadwalMasuk);
|
||||
absensiMasuk = absensiDate;
|
||||
|
||||
if((absensiMasuk.before(new Date(1780272000000L)) || absensiMasuk.equals(new Date(1780272000000L)))){
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT) {
|
||||
jumlahCountTerlambat += 1;
|
||||
jumlahTerlambat += terlambat;
|
||||
data.put("terlambat", terlambat);
|
||||
data.put("telat", terlambat.toString());
|
||||
}
|
||||
}else{
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT_01062026) {
|
||||
jumlahCountTerlambat += 1;
|
||||
jumlahTerlambat += terlambat;
|
||||
data.put("terlambat", terlambat);
|
||||
data.put("telat", terlambat.toString());
|
||||
}
|
||||
}
|
||||
|
||||
} else if (count == index) {
|
||||
listTrNo.add(Integer.parseInt(temp.get("tr_no").toString()));
|
||||
data.put("absensiPulang", sdf.format(time));
|
||||
@ -3662,11 +3711,20 @@ public class MonitoringAbsenServiceImpl extends BaseVoServiceImpl implements Mon
|
||||
kehadiran.put("pulangAwal", reduceTime(jadwalPulang, absensiDate));
|
||||
kehadiran.put("pulangCepat", (reduceTime(jadwalPulang, absensiDate)).toString());
|
||||
jumlahPulangAwal += reduceTime(jadwalPulang, absensiDate);
|
||||
if (terlambat > 15) {
|
||||
|
||||
if((absensiMasuk.before(new Date(1780272000000L)) || absensiMasuk.equals(new Date(1780272000000L)))){
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT) {
|
||||
jumlahTerlambat += terlambat;
|
||||
kehadiran.put("terlambat", terlambat);
|
||||
kehadiran.put("telat", terlambat.toString());
|
||||
}
|
||||
}else{
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT_01062026) {
|
||||
jumlahTerlambat += terlambat;
|
||||
kehadiran.put("terlambat", terlambat);
|
||||
kehadiran.put("telat", terlambat.toString());
|
||||
}
|
||||
}
|
||||
|
||||
if (CommonUtil.isNotNullOrEmpty(data.get("idKelompokShiftKerja"))) {
|
||||
if ((Integer) data.get("idKelompokShiftKerja") == 2) {
|
||||
@ -4204,11 +4262,20 @@ public class MonitoringAbsenServiceImpl extends BaseVoServiceImpl implements Mon
|
||||
kehadiran.put("pulangAwal", reduceTime(jadwalPulang, absensiDate));
|
||||
kehadiran.put("pulangCepat", (reduceTime(jadwalPulang, absensiDate)).toString());
|
||||
jumlahPulangAwal += reduceTime(jadwalPulang, absensiDate);
|
||||
if (terlambat > 15) {
|
||||
|
||||
if((absensiMasuk.before(new Date(1780272000000L)) || absensiMasuk.equals(new Date(1780272000000L)))){
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT) {
|
||||
jumlahTerlambat += terlambat;
|
||||
kehadiran.put("terlambat", terlambat);
|
||||
kehadiran.put("telat", terlambat.toString());
|
||||
}
|
||||
}else{
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT_01062026) {
|
||||
jumlahTerlambat += terlambat;
|
||||
kehadiran.put("terlambat", terlambat);
|
||||
kehadiran.put("telat", terlambat.toString());
|
||||
}
|
||||
}
|
||||
|
||||
if (CommonUtil.isNotNullOrEmpty(data.get("idKelompokShiftKerja"))) {
|
||||
if (data.get("idKelompokShiftKerja") == getIdNonShiftPlus()) {
|
||||
@ -4585,11 +4652,20 @@ public class MonitoringAbsenServiceImpl extends BaseVoServiceImpl implements Mon
|
||||
data.put("pulangAwal", reduceTime(jadwalPulang, absensiDate));
|
||||
data.put("pulangCepat", (reduceTime(jadwalPulang, absensiDate)).toString());
|
||||
jumlahPulangAwal += reduceTime(jadwalPulang, absensiDate);
|
||||
if (terlambat > 15) {
|
||||
|
||||
if((absensiMasuk.before(new Date(1780272000000L)) || absensiMasuk.equals(new Date(1780272000000L)))){
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT) {
|
||||
jumlahTerlambat += terlambat;
|
||||
data.put("terlambat", terlambat);
|
||||
data.put("telat", terlambat.toString());
|
||||
}
|
||||
}else{
|
||||
if (terlambat > Master.MonitoringAbsensi.BATAS_TERLAMBAT_01062026) {
|
||||
jumlahTerlambat += terlambat;
|
||||
data.put("terlambat", terlambat);
|
||||
data.put("telat", terlambat.toString());
|
||||
}
|
||||
}
|
||||
|
||||
if (CommonUtil.isNotNullOrEmpty(data.get("idKelompokShiftKerja"))) {
|
||||
if ((Integer) data.get("idKelompokShiftKerja") == 2) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user