|
@@ -49,7 +49,7 @@ public class WmsServiceImpl implements IWmsService {
|
|
|
mapping.put("WH03", "pt");
|
|
|
mapping.put("WH04", "bpb");
|
|
|
mapping.put("WH08", "cp");
|
|
|
- Map<String, Double> lineMap = new HashMap<>(16);
|
|
|
+ Map<String, Long> lineMap = new HashMap<>(16);
|
|
|
Map<String, Object> result = new HashMap<>(16);
|
|
|
result.put("ycl", initMap.clone());
|
|
|
result.put("cp", initMap.clone());
|
|
@@ -66,7 +66,7 @@ public class WmsServiceImpl implements IWmsService {
|
|
|
Map<String, List<MesStock>> bpTargetMap = wmsOutTargetList.stream().collect(Collectors.groupingBy(MesStock::getTarget));
|
|
|
bpTargetMap.forEach((target, targetList) -> {
|
|
|
//统计出库总量
|
|
|
- double sum = targetList.stream().mapToDouble(MesStock::getTotal).sum();
|
|
|
+ long sum = targetList.stream().mapToLong(MesStock::getTotal).sum();
|
|
|
//“染整白坯7#上料点”,解析产线
|
|
|
String line = target.replace("染整白坯", "").replace("#上料点", "");
|
|
|
lineMap.put(line, sum);
|