|
@@ -851,6 +851,7 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
ma.setPeriodNumber(tec.periodInfo.getPeriodNumber());
|
|
|
ma.setName(e.getFormMaterialName());
|
|
|
/*ma.setName(e.getMaterialName());*/
|
|
|
+ ma.setContractMaterialName(e.getMaterialName());
|
|
|
ma.setUnit(e.getUnit());
|
|
|
ma.setQuantity(e.getMeterAmount());
|
|
|
ma.setPrice(e.getPrice());
|
|
@@ -872,7 +873,7 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
v1.setQuantity(addFc.apply(v1.getQuantity(),v2.getQuantity()));
|
|
|
return v1;
|
|
|
},LinkedHashMap::new)).values());*/
|
|
|
- LinkedHashMap<String,List<MaterialsArrival>> group= list.stream().collect(Collectors.groupingBy(MaterialsArrival::getName, LinkedHashMap::new,Collectors.toList()));
|
|
|
+ LinkedHashMap<String,List<MaterialsArrival>> group= list.stream().collect(Collectors.groupingBy(MaterialsArrival::getContractMaterialName, LinkedHashMap::new,Collectors.toList()));
|
|
|
int rowSize= capacity;
|
|
|
AtomicInteger sn= new AtomicInteger(1);
|
|
|
AtomicBoolean isLast= new AtomicBoolean(false);
|