Update LogbookKinerjaService
Penghapusan output logging dari result fungsi hitung target skor dokter
This commit is contained in:
parent
8e42c118ac
commit
d38e5bd003
@ -2701,40 +2701,6 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
|
|||||||
result.addAll(listRs);
|
result.addAll(listRs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Untuk output internal
|
|
||||||
*/
|
|
||||||
List<Integer> listIdPegawai = new ArrayList<>();
|
|
||||||
List<Date> listBulan = new ArrayList<>();
|
|
||||||
for (SkorDokterVO skorDokterVO : result) {
|
|
||||||
if (!listIdPegawai.contains(skorDokterVO.getIdPegawai())) {
|
|
||||||
listIdPegawai.add(skorDokterVO.getIdPegawai());
|
|
||||||
}
|
|
||||||
if (!listBulan.contains(skorDokterVO.getBulan())) {
|
|
||||||
listBulan.add(skorDokterVO.getBulan());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
List<Integer> sortedListIdPegawai = listIdPegawai.stream().sorted().collect(Collectors.toList());
|
|
||||||
List<Date> sortedListBulan = listBulan.stream().sorted().collect(Collectors.toList());
|
|
||||||
|
|
||||||
for (Integer idPegawai : sortedListIdPegawai) {
|
|
||||||
String out = "";
|
|
||||||
String skor = "";
|
|
||||||
for (Date bulan : sortedListBulan) {
|
|
||||||
for (SkorDokterVO vo : result) {
|
|
||||||
if (idPegawai.equals(vo.getIdPegawai()) && bulan.equals(vo.getBulan())) {
|
|
||||||
if (skor == "") {
|
|
||||||
skor = vo.getSkor().toString();
|
|
||||||
} else {
|
|
||||||
skor += "," + vo.getSkor().toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
out = idPegawai + "," + skor;
|
|
||||||
System.out.println(out);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user