| | |
| | | } |
| | | |
| | | if (!isWithinBatchExecuteWindow(wrkMast, unfinishedBatchWrkMasts, batchRunningLimit)) { |
| | | Integer windowStartSeq = unfinishedBatchWrkMasts.get(0).getBatchSeq(); |
| | | Integer windowEndSeq = unfinishedBatchWrkMasts.get(Math.min(batchRunningLimit, unfinishedBatchWrkMasts.size()) - 1).getBatchSeq(); |
| | | List<Integer> windowBatchSeqList = unfinishedBatchWrkMasts.stream() |
| | | .limit(Math.min(batchRunningLimit, unfinishedBatchWrkMasts.size())) |
| | | .map(WrkMast::getBatchSeq) |
| | | .collect(java.util.stream.Collectors.toList()); |
| | | News.taskInfo(wrkMast.getWrkNo(), |
| | | "批次:{} 当前严格执行窗口序号为[{}-{}],当前序号={},暂不允许堆垛机出库", |
| | | "批次:{} 当前严格执行窗口序号列表为{},当前序号={},暂不允许堆垛机出库", |
| | | wrkMast.getBatch(), |
| | | windowStartSeq, |
| | | windowEndSeq, |
| | | windowBatchSeqList, |
| | | wrkMast.getBatchSeq()); |
| | | return false; |
| | | } |