fix(events): allow container nodes before ocean booking

This commit is contained in:
2026-09-10 14:10:02 +08:00
parent c026edbb2f
commit 3e4d6b76aa
6 changed files with 17 additions and 9 deletions
@@ -31,8 +31,10 @@ public record FirstLegContainerShippingNodeRecordedV1(
if (queryId != null && queryId.isBlank()) {
throw new IllegalArgumentException("船节点跟踪任务标识不能为空字符串");
}
if (oceanBookingId == null || oceanBookingId.isBlank()
|| containerBookingId == null || containerBookingId.isBlank()
if (oceanBookingId != null && oceanBookingId.isBlank()) {
throw new IllegalArgumentException("船节点订舱标识不能为空字符串");
}
if (containerBookingId == null || containerBookingId.isBlank()
|| containerNo == null || containerNo.isBlank()) {
throw new IllegalArgumentException("船节点交接业务标识不能为空");
}