Update LogbookKinerjaServiceImpl.java

Perbaikan iterasi 1 tahun dari custom parameter bulan untuk hitung skor dokter bulanan
This commit is contained in:
salmanoersabhk 2022-09-22 14:00:18 +07:00
parent 1259675094
commit c481eb90ee

View File

@ -3297,7 +3297,8 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
byte hitungTargetId = 1;
java.time.LocalDate startDate = java.time.LocalDate.parse(bulanAwal + "-01");
java.time.LocalDate endDate = java.time.LocalDate.parse(bulanAkhir + "-01");
for (java.time.LocalDate date = startDate; date.isBefore(endDate); date = date.plusMonths(1)) {
for (java.time.LocalDate date = startDate; date.isBefore(endDate)
|| date.equals(endDate); date = date.plusMonths(1)) {
List<SkorDokterVO> listRs = hitungSkorDokter(mf.parse(date.format(smf)), hitungTargetId);
result.addAll(listRs);
}