Update LogbookKinerjaService
Perubahan property hak akses service get daftar pegawai akses kinerja
This commit is contained in:
parent
9aeb7dc6cc
commit
1655e17f1b
@ -800,7 +800,7 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
|
|||||||
rsAll = pegawaiDao.findPegawaiByListKategori(listPurnaWaktu);
|
rsAll = pegawaiDao.findPegawaiByListKategori(listPurnaWaktu);
|
||||||
result.addAll(rsAll);
|
result.addAll(rsAll);
|
||||||
for (Map<String, Object> map : result) {
|
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)) {
|
if (CommonUtil.isNotNullOrEmpty(aksesByStaf) && CommonUtil.isNullOrEmpty(rsAll)) {
|
||||||
for (Map<String, Object> map : aksesByStaf) {
|
for (Map<String, Object> map : aksesByStaf) {
|
||||||
map.put("isModifAkses", false);
|
map.put("isGranted", false);
|
||||||
}
|
}
|
||||||
result.addAll(aksesByStaf);
|
result.addAll(aksesByStaf);
|
||||||
}
|
}
|
||||||
if (CommonUtil.isNotNullOrEmpty(aksesByAtasan)) {
|
if (CommonUtil.isNotNullOrEmpty(aksesByAtasan)) {
|
||||||
if (CommonUtil.isNullOrEmpty(rsAll)) {
|
if (CommonUtil.isNullOrEmpty(rsAll)) {
|
||||||
for (Map<String, Object> map : aksesByAtasan) {
|
for (Map<String, Object> map : aksesByAtasan) {
|
||||||
map.put("isModifAkses", true);
|
map.put("isGranted", true);
|
||||||
}
|
}
|
||||||
result.addAll(aksesByAtasan);
|
result.addAll(aksesByAtasan);
|
||||||
} else {
|
} else {
|
||||||
for (Map<String, Object> res : result) {
|
for (Map<String, Object> res : result) {
|
||||||
for (Map<String, Object> map : aksesByAtasan) {
|
for (Map<String, Object> map : aksesByAtasan) {
|
||||||
if (res.get("id").equals(map.get("id"))) {
|
if (res.get("id").equals(map.get("id"))) {
|
||||||
res.put("isModifAkses", true);
|
res.put("isGranted", true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -834,7 +834,7 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
|
|||||||
}
|
}
|
||||||
if (CommonUtil.isNotNullOrEmpty(aksesByPenilai) && CommonUtil.isNullOrEmpty(rsAll)) {
|
if (CommonUtil.isNotNullOrEmpty(aksesByPenilai) && CommonUtil.isNullOrEmpty(rsAll)) {
|
||||||
for (Map<String, Object> map : aksesByPenilai) {
|
for (Map<String, Object> map : aksesByPenilai) {
|
||||||
map.put("isModifAkses", false);
|
map.put("isGranted", false);
|
||||||
}
|
}
|
||||||
result.addAll(aksesByPenilai);
|
result.addAll(aksesByPenilai);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user