Update LogbookKinerjaService

Perubahan property hak akses service get daftar pegawai akses kinerja
This commit is contained in:
Salman Manoe 2022-01-17 17:33:23 +07:00
parent 9aeb7dc6cc
commit 1655e17f1b

View File

@ -800,7 +800,7 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
rsAll = pegawaiDao.findPegawaiByListKategori(listPurnaWaktu);
result.addAll(rsAll);
for (Map<String, Object> map : result) {
map.put("isModifAkses", false);
map.put("isGranted", false);
}
}
@ -811,21 +811,21 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
if (CommonUtil.isNotNullOrEmpty(aksesByStaf) && CommonUtil.isNullOrEmpty(rsAll)) {
for (Map<String, Object> map : aksesByStaf) {
map.put("isModifAkses", false);
map.put("isGranted", false);
}
result.addAll(aksesByStaf);
}
if (CommonUtil.isNotNullOrEmpty(aksesByAtasan)) {
if (CommonUtil.isNullOrEmpty(rsAll)) {
for (Map<String, Object> map : aksesByAtasan) {
map.put("isModifAkses", true);
map.put("isGranted", true);
}
result.addAll(aksesByAtasan);
} else {
for (Map<String, Object> res : result) {
for (Map<String, Object> map : aksesByAtasan) {
if (res.get("id").equals(map.get("id"))) {
res.put("isModifAkses", true);
res.put("isGranted", true);
break;
}
}
@ -834,7 +834,7 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
}
if (CommonUtil.isNotNullOrEmpty(aksesByPenilai) && CommonUtil.isNullOrEmpty(rsAll)) {
for (Map<String, Object> map : aksesByPenilai) {
map.put("isModifAkses", false);
map.put("isGranted", false);
}
result.addAll(aksesByPenilai);
}