贴标申请,仓储转运

This commit is contained in:
2026-09-20 15:06:17 +08:00
parent a7d458cddd
commit 02844da360
56 changed files with 2121 additions and 111 deletions
@@ -478,6 +478,14 @@ public class WarehouseTransferService {
orderDetails.updateById(detail);
}
syncInboundPlanDestination(customerId, transfer);
if (StringUtils.hasText(transfer.getRelabelNo())) {
RelabelApplication relabel = relabelApplications.lockNo(customerId, transfer.getRelabelNo());
if (relabel != null && "WAIT_FBA_DESTINATION".equals(relabel.getFulfillmentStatus())) {
relabel.setFulfillmentStatus("WAIT_PRE_DISPATCH");
relabel.setUpdatedAt(now);
relabelApplications.updateById(relabel);
}
}
insertOrderHistory(customerId, order.getId(), order.getCurrentStatus(), order.getCurrentStatus(), transferNo,
"Warehouse transfer destination bound by " + trim(operatorId), now);
results.add(new WarehouseTransferResponses.DestinationResult(customerId, transferNo));
@@ -1160,7 +1168,7 @@ public class WarehouseTransferService {
throw conflict("Source inventory balance is missing for warehouse transfer receipt");
}
InventoryCommandResponse result = inventory.stockIn(customerId, operatorId,
new InventoryCommandRequests.StockIn(customerId, null,
new InventoryCommandRequests.StockIn(customerId, sourceBalance.getCustomerName(),
request.destinationOverseasWarehouseId().trim(), trim(request.destinationOverseasWarehouseCode()),
trim(request.destinationOverseasWarehouseName()), trim(request.destinationWarehouseId()),
request.destinationWarehouseCode().trim(), trim(request.destinationWarehouseName()),