内贸导入航次接口更换
This commit is contained in:
parent
346918ab95
commit
ad00a6c3f1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue