| | |
| | | |
| | | return pendingOutboundTasks.stream() |
| | | .filter(this::isBatchTaskWithSeq) |
| | | .filter(this::isCrnMoveBlockingOutboundTask) |
| | | .anyMatch(task -> Objects.equals(activeBatch, task.getBatch())); |
| | | } |
| | | |
| | |
| | | && wrkMast.getBatchSeq() != null; |
| | | } |
| | | |
| | | private boolean isCrnMoveBlockingOutboundTask(WrkMast wrkMast) { |
| | | if (wrkMast == null || wrkMast.getWrkSts() == null) { |
| | | return false; |
| | | } |
| | | return Objects.equals(wrkMast.getWrkSts(), WrkStsType.NEW_OUTBOUND.sts) |
| | | || Objects.equals(wrkMast.getWrkSts(), WrkStsType.OUTBOUND_RUN.sts) |
| | | || Objects.equals(wrkMast.getWrkSts(), WrkStsType.OUTBOUND_MANUAL.sts); |
| | | } |
| | | |
| | | private boolean isInboundCrnMoveDispatchWindow(WrkMast wrkMast, StationMoveSession session) { |
| | | if (wrkMast == null || session == null || !session.isActive() || wrkMast.getStaNo() == null) { |
| | | return false; |