Merge remote-tracking branch 'origin/test' into dev
This commit is contained in:
+3
-1
@@ -533,7 +533,9 @@ public class InboundPlanService {
|
||||
wholePallets.add(sourcePallets);
|
||||
List<String> standardNos = "ONE_CLICK_DROPSHIP".equals(ref.orderType()) ? List.of()
|
||||
: sourcePalletMapper.palletNos(ref.customerId(), ref.orderId());
|
||||
if (sourcePallets == null && standardNos.isEmpty()) throw new ResponseStatusException(
|
||||
boolean standardFba = sourcePallets == null && orders.stream()
|
||||
.anyMatch(order -> trimToNull(order.fbaWarehouseCode()) != null);
|
||||
if (standardFba && standardNos.isEmpty()) throw new ResponseStatusException(
|
||||
HttpStatus.CONFLICT, "散货订单缺少头程托盘码快照");
|
||||
standardPalletNos.add(standardNos);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user