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>>() {
|
Type effectiveDateDataFixType = new TypeToken<List<EffectiveDateDataFixDTO>>() {
|
||||||
}.getType();
|
}.getType();
|
||||||
String jsonProdukDokterUmum = getSettingDataFixed(namaField);
|
String jsonProdukDokterUmum = getSettingDataFixed(namaField);
|
||||||
|
if (jsonProdukDokterUmum.isEmpty())
|
||||||
|
return result;
|
||||||
List<EffectiveDateDataFixDTO> dataFixDTOList = gson.fromJson(jsonProdukDokterUmum, effectiveDateDataFixType);
|
List<EffectiveDateDataFixDTO> dataFixDTOList = gson.fromJson(jsonProdukDokterUmum, effectiveDateDataFixType);
|
||||||
Optional<EffectiveDateDataFixDTO> first = dataFixDTOList.stream()
|
Optional<EffectiveDateDataFixDTO> first = dataFixDTOList.stream()
|
||||||
.sorted(Comparator.comparing(EffectiveDateDataFixDTO::getTmt, Comparator.reverseOrder()))
|
.sorted(Comparator.comparing(EffectiveDateDataFixDTO::getTmt, Comparator.reverseOrder()))
|
||||||
.filter(dto -> dto.getTmt() <= date.getTime()).findFirst();
|
.filter(dto -> dto.getTmt() <= date.getTime()).findFirst();
|
||||||
if (first.isPresent()) {
|
if (first.isPresent()) {
|
||||||
String[] split = first.get().getNilaiField().split(",");
|
String[] split = first.get().getNilaiField().replace(" ","").split(",");
|
||||||
for (String s : split)
|
for (String s : split)
|
||||||
result.add(Integer.valueOf(s));
|
result.add(Integer.valueOf(s));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user