Update LogbookKinerjaDokterService

Rapi-rapi
This commit is contained in:
Salman Manoe 2022-02-09 11:30:35 +07:00
parent d730bcf6c3
commit c59f1ff46a

View File

@ -117,7 +117,7 @@ public class LogbookKinerjaDokterServiceImpl extends BaseVoServiceImpl implement
List<LogbookKinerjaDokter> listDetailKinerja = logbookDokterDao.findDetailKinerjaDokter(idLogbook);
Double result = 0.0;
for (LogbookKinerjaDokter detailKinerja : listDetailKinerja) {
if (Arrays.asList(Master.SatuanIndikator.PERCENTAGE).contains(idSatuan)) {
if (idSatuan.equals(Master.SatuanIndikator.PERCENTAGE)) {
if (detailKinerja.getDetailCapaian() >= detailKinerja.getDetailTarget()) {
result += detailKinerja.getDetailTarget() / detailKinerja.getDetailTarget() * 100;
} else {
@ -127,7 +127,7 @@ public class LogbookKinerjaDokterServiceImpl extends BaseVoServiceImpl implement
result += detailKinerja.getDetailCapaian();
}
}
if (Arrays.asList(Master.SatuanIndikator.PERCENTAGE).contains(idSatuan)) {
if (idSatuan.equals(Master.SatuanIndikator.PERCENTAGE)) {
result /= listDetailKinerja.size();
}