Update LogbookKinerjaService
Pemasangan print log saat hitung target skor dokter
This commit is contained in:
parent
b5568a56e1
commit
81c867eeea
@ -2907,6 +2907,40 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user