Merge branch 'dev/remun/logbook-tarif' into dev/no-cron

This commit is contained in:
Salman Manoe 2025-02-25 09:48:58 +07:00
commit 9245a29163

View File

@ -134,12 +134,14 @@ public abstract class BaseVoServiceImpl {
Type effectiveDateDataFixType = new TypeToken<List<EffectiveDateDataFixDTO>>() {
}.getType();
String jsonProdukDokterUmum = getSettingDataFixed(namaField);
if (jsonProdukDokterUmum.isEmpty())
return result;
List<EffectiveDateDataFixDTO> dataFixDTOList = gson.fromJson(jsonProdukDokterUmum, effectiveDateDataFixType);
Optional<EffectiveDateDataFixDTO> first = dataFixDTOList.stream()
.sorted(Comparator.comparing(EffectiveDateDataFixDTO::getTmt, Comparator.reverseOrder()))
.filter(dto -> dto.getTmt() <= date.getTime()).findFirst();
if (first.isPresent()) {
String[] split = first.get().getNilaiField().split(",");
String[] split = first.get().getNilaiField().replace(" ","").split(",");
for (String s : split)
result.add(Integer.valueOf(s));
}