diff --git a/nuzar-customer-controller/src/main/java/com/haitonggauto/rtosc/handler/ExportInHandler.java b/nuzar-customer-controller/src/main/java/com/haitonggauto/rtosc/handler/ExportInHandler.java index 488b11f..ef9c0bf 100644 --- a/nuzar-customer-controller/src/main/java/com/haitonggauto/rtosc/handler/ExportInHandler.java +++ b/nuzar-customer-controller/src/main/java/com/haitonggauto/rtosc/handler/ExportInHandler.java @@ -2019,10 +2019,10 @@ public class ExportInHandler implements BaseHandler { } // 体积 double totalVolume = exportInList.stream().map(p -> p.getVolume().doubleValue()).mapToDouble(p -> p).sum() + item.getValue().stream().map(p -> p.getVolume().doubleValue()).mapToDouble(p -> p).sum(); - if (new BigDecimal(totalVolume).compareTo(lastE.getEachWeight()) > 0) { + if (new BigDecimal(totalVolume).compareTo(lastE.getEachVolume()) > 0) { errorDataList.addAll(item.getValue().stream().map(p -> { JSONObject o = JSONObject.from(p); - o.put("status", "体积不得超过单票重量"); + o.put("status", "体积不得超过单票体积"); return o; }).collect(Collectors.toList())); return;