Merge branch 'dev/remun/logbook-tarif' into dev/no-cron
This commit is contained in:
commit
9245a29163
@ -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));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user