| | |
| | | |
| | | WrkMast inboundWrkMast = wrkMastService.getOne(new QueryWrapper<WrkMast>() |
| | | .eq("io_type", WrkIoType.IN.id) |
| | | .eq("crn_no", crnNo) |
| | | .eq("wrk_sts", WrkStsType.INBOUND_STATION_RUN.sts) |
| | | .last("limit 1")); |
| | | if (inboundWrkMast == null) { |
| | |
| | | |
| | | StationProtocol targetStationProtocol = resolveTargetStationProtocol(inboundWrkMast.getStaNo()); |
| | | if (targetStationProtocol != null |
| | | && targetStationProtocol.isLoading() |
| | | && targetStationProtocol.getTaskNo() > 0 |
| | | && targetStationProtocol.isInEnable()) { |
| | | && targetStationProtocol.getTaskNo() > 0) { |
| | | continue; |
| | | } |
| | | |
| | |
| | | .eq("io_type", WrkIoType.OUT.id) |
| | | .in("wrk_sts", |
| | | WrkStsType.NEW_OUTBOUND.sts, |
| | | WrkStsType.OUTBOUND_RUN.sts, |
| | | WrkStsType.OUTBOUND_RUN_COMPLETE.sts, |
| | | WrkStsType.STATION_RUN.sts, |
| | | WrkStsType.STATION_RUN_COMPLETE.sts, |
| | | WrkStsType.OUTBOUND_MANUAL.sts) |
| | | WrkStsType.OUTBOUND_RUN.sts) |
| | | .orderByAsc("wrk_no")); |
| | | if (pendingOutboundTasks == null || pendingOutboundTasks.isEmpty()) { |
| | | return false; |