| | |
| | | stationOutboundDispatchProcessor.dualCrnStationOutExecute(); |
| | | } |
| | | |
| | | //检测输送站点出库任务执行完成 |
| | | public synchronized void stationOutExecuteFinish() { |
| | | stationRegularDispatchProcessor.stationOutExecuteFinish(); |
| | | } |
| | | |
| | | // 检测单个出库任务是否到达目标站台 |
| | | public void stationOutExecuteFinish(WrkMast wrkMast) { |
| | | stationRegularDispatchProcessor.stationOutExecuteFinish(wrkMast); |
| | | public void stationOutExecuteFinish(StationObjModel stationObjModel) { |
| | | stationRegularDispatchProcessor.stationOutExecuteFinish(stationObjModel); |
| | | } |
| | | |
| | | // 检测单个入库任务是否到达目标站台 |
| | |
| | | } |
| | | |
| | | public void submitStationOutExecuteFinishTasks(MainProcessLane lane, long minIntervalMs) { |
| | | List<WrkMast> wrkMasts = wrkMastService.list(new QueryWrapper<WrkMast>() |
| | | .eq("wrk_sts", WrkStsType.STATION_RUN.sts) |
| | | .isNotNull("sta_no")); |
| | | for (WrkMast wrkMast : wrkMasts) { |
| | | mainProcessTaskSubmitter.submitKeyedSerialTask( |
| | | lane, |
| | | wrkMast.getStaNo(), |
| | | "stationOutExecuteFinish", |
| | | minIntervalMs, |
| | | () -> stationOutExecuteFinish(wrkMast) |
| | | ); |
| | | List<BasDevp> basDevps = basDevpService.list(new QueryWrapper<>()); |
| | | for (BasDevp basDevp : basDevps) { |
| | | for (StationObjModel stationObjModel : basDevp.getOutStationList$()) { |
| | | mainProcessTaskSubmitter.submitKeyedSerialTask( |
| | | lane, |
| | | stationObjModel.getStationId(), |
| | | "stationOutExecuteFinish", |
| | | minIntervalMs, |
| | | () -> stationOutExecuteFinish(stationObjModel) |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | |