内贸导入航次接口更换

This commit is contained in:
dengjun 2023-11-10 20:51:30 +08:00
parent 346918ab95
commit ad00a6c3f1
1 changed files with 2 additions and 2 deletions

View File

@ -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;