Update LogbookKinerjaDokterService
Rapi-rapi
This commit is contained in:
parent
d730bcf6c3
commit
c59f1ff46a
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user