fix(transfer): settle linked relabel fees after final receipt

This commit is contained in:
2026-10-05 02:47:22 +08:00
parent 9e4a838ba1
commit b371fab53d
4 changed files with 151 additions and 18 deletions
@@ -1283,8 +1283,8 @@ public class WarehouseTransferService {
RelabelApplication linked = relabelApplications.lockNo(customerId, transfer.getRelabelNo());
if (linked == null || !Objects.equals(linked.getId(), transfer.getRelabelApplicationId()))
throw conflict("本票换标完成归属不一致");
linked.setStatus("COMPLETED"); linked.setFulfillmentStatus("COMPLETED");
linked.setUpdatedAt(now); relabelApplications.updateById(linked);
relabelService.completeWarehouseTransferFulfillment(customerId, transfer.getRelabelNo(),
transfer.getId(), operatorId);
}
return detail(customerId, transferNo);
}