| | |
| | | this.crnOperateProcessUtils = crnOperateProcessUtils; |
| | | } |
| | | |
| | | @Scheduled(fixedDelay = 1000L) |
| | | // @Scheduled(fixedDelay = 1000L) |
| | | public void dispatchInboundCrnMove() { |
| | | List<BasCrnp> basCrnps = basCrnpService.list(new QueryWrapper<BasCrnp>() |
| | | .orderByAsc("crn_no")); |
| | |
| | | .eq("io_type", WrkIoType.OUT.id) |
| | | .in("wrk_sts", |
| | | WrkStsType.NEW_OUTBOUND.sts, |
| | | WrkStsType.OUTBOUND_RUN.sts) |
| | | WrkStsType.OUTBOUND_RUN.sts, |
| | | WrkStsType.OUTBOUND_RUN_COMPLETE.sts) |
| | | .orderByAsc("wrk_no")); |
| | | if (pendingOutboundTasks == null || pendingOutboundTasks.isEmpty()) { |
| | | return false; |