Merge branch 'dev/kepegawaian/golongan-pppk' into dev/no-cron
This commit is contained in:
commit
54ad57638d
@ -1821,6 +1821,7 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
||||
if (CommonUtil.isNotNullOrEmpty(jabatanFungsional)) {
|
||||
result.put("jabatanFungsional", jabatanFungsional);
|
||||
}
|
||||
result.remove("jabatanFungsionalId");
|
||||
}
|
||||
if (CommonUtil.isNotNullOrEmpty(result.get("jabatanInternalId"))) {
|
||||
Map<String, Object> jabatanInternal = jabatanDao
|
||||
@ -1828,6 +1829,7 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
||||
if (CommonUtil.isNotNullOrEmpty(jabatanInternal)) {
|
||||
result.put("jabatanInternal", jabatanInternal);
|
||||
}
|
||||
result.remove("jabatanInternalId");
|
||||
}
|
||||
if (CommonUtil.isNotNullOrEmpty(result.get("jabatanLamarId"))) {
|
||||
Map<String, Object> jabatanLamar = jabatanDao
|
||||
@ -1835,6 +1837,7 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
||||
if (CommonUtil.isNotNullOrEmpty(jabatanLamar)) {
|
||||
result.put("jabatanLamar", jabatanLamar);
|
||||
}
|
||||
result.remove("jabatanLamarId");
|
||||
}
|
||||
if (CommonUtil.isNotNullOrEmpty(result.get("jabatanStrukturalId"))) {
|
||||
Map<String, Object> jabatanStruktural = jabatanDao
|
||||
@ -1842,6 +1845,7 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
||||
if (CommonUtil.isNotNullOrEmpty(jabatanStruktural)) {
|
||||
result.put("jabatanStruktural", jabatanStruktural);
|
||||
}
|
||||
result.remove("jabatanStrukturalId");
|
||||
}
|
||||
if (CommonUtil.isNotNullOrEmpty(result.get("jenisKelaminId"))) {
|
||||
Map<String, Object> jenisKelamin = jenisKelaminDao
|
||||
@ -1900,7 +1904,10 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
||||
}
|
||||
if (CommonUtil.isNotNullOrEmpty(result.get("golonganPPPKId"))) {
|
||||
Optional<GolonganPPPK> byId = golonganPPPKDao.findById(result.get("golonganPPPKId").toString());
|
||||
byId.ifPresent(golonganPPPK -> result.put("golonganPPPK", golonganPPPK));
|
||||
byId.ifPresent(golonganPPPK -> {
|
||||
result.put("golonganPPPK", golonganPPPK);
|
||||
result.remove("golonganPPPKId");
|
||||
});
|
||||
}
|
||||
if (CommonUtil.isNotNullOrEmpty(result.get("rekananId"))) {
|
||||
Map<String, Object> rekanan = rekananDao
|
||||
@ -1908,6 +1915,7 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
||||
if (CommonUtil.isNotNullOrEmpty(rekanan)) {
|
||||
result.put("rekanan", rekanan);
|
||||
}
|
||||
result.remove("rekananId");
|
||||
}
|
||||
if (CommonUtil.isNotNullOrEmpty(result.get("ruanganId"))) {
|
||||
Map<String, Object> ruangan = ruanganDao
|
||||
@ -1915,6 +1923,7 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
||||
if (CommonUtil.isNotNullOrEmpty(ruangan)) {
|
||||
result.put("ruangan", ruangan);
|
||||
}
|
||||
result.remove("ruanganId");
|
||||
}
|
||||
if (CommonUtil.isNotNullOrEmpty(result.get("shiftKerjaId"))) {
|
||||
Map<String, Object> shiftKerja = kelompokShiftDao
|
||||
@ -1945,6 +1954,7 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
||||
if (CommonUtil.isNotNullOrEmpty(typePegawai)) {
|
||||
result.put("typePegawai", typePegawai);
|
||||
}
|
||||
result.remove("typePegawaiId");
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user