From ad00a6c3f1fa2c2bf5c2211be0d8aa90112d7241 Mon Sep 17 00:00:00 2001 From: dengjun Date: Fri, 10 Nov 2023 20:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E8=B4=B8=E5=AF=BC=E5=85=A5=E8=88=AA?= =?UTF-8?q?=E6=AC=A1=E6=8E=A5=E5=8F=A3=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/haitonggauto/rtosc/handler/ExportInHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;