Aggiornato servizio ProdRecuperoMaterialeRESTConsumer
This commit is contained in:
@@ -44,14 +44,16 @@ public class ProdRecuperoMaterialeRESTConsumer extends _BaseRESTConsumer {
|
|||||||
List<HistoryVersamentoProdULDTO> newUlList = new ArrayList<>();
|
List<HistoryVersamentoProdULDTO> newUlList = new ArrayList<>();
|
||||||
|
|
||||||
Map<HashMap<String, Object>, List<HistoryVersamentoProdULRestDTO>> ulListGrouped = ulList.stream()
|
Map<HashMap<String, Object>, List<HistoryVersamentoProdULRestDTO>> ulListGrouped = ulList.stream()
|
||||||
.collect(Collectors.groupingBy(x -> new HashMap<>() {{
|
.collect(Collectors.groupingBy(x -> {
|
||||||
put("gestione", x.getGestione());
|
var keyMap = new HashMap<String, Object>();
|
||||||
put("data_collo", x.getDataCollo());
|
keyMap.put("gestione", x.getGestione());
|
||||||
put("ser_collo", x.getSerCollo());
|
keyMap.put("data_collo", x.getDataCollo());
|
||||||
put("num_collo", x.getNumCollo());
|
keyMap.put("ser_collo", x.getSerCollo());
|
||||||
put("cod_mart", x.getCodMart());
|
keyMap.put("num_collo", x.getNumCollo());
|
||||||
put("barcode_ul_out", x.getBarcodeUlOut());
|
keyMap.put("cod_mart", x.getCodMart());
|
||||||
}}, Collectors.toList()));
|
keyMap.put("barcode_ul_out", x.getBarcodeUlOut());
|
||||||
|
return keyMap;
|
||||||
|
}, Collectors.toList()));
|
||||||
|
|
||||||
|
|
||||||
ulListGrouped.forEach((key, value) -> {
|
ulListGrouped.forEach((key, value) -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user