| | |
| | | public synchronized void missionTaskEXECUTE() { |
| | | try{ |
| | | List<FlowStepInstance> flowStepInstanceList = flowStepInstanceService.list(new LambdaQueryWrapper<FlowStepInstance>() |
| | | .eq(FlowStepInstance::getStatus, 1).in(FlowStepInstance::getStepType,MissionStepType.getTaskISSUE())); |
| | | .eq(FlowStepInstance::getStatus, (short) 1).in(FlowStepInstance::getStepType,MissionStepType.getTaskISSUE())); |
| | | for (FlowStepInstance flowStepInstance : flowStepInstanceList) { |
| | | FlowInstance flowInstance = flowInstanceService.getById(flowStepInstance.getFlowInstanceId()); |
| | | if (Cools.isEmpty(flowInstance)) { continue;} |
| | |
| | | flowStepInstanceService.updateById(flowStepInstance); |
| | | log.error("任务下发失败,源点未查询到目标点未查询到,等待重试...."); |
| | | } |
| | | return; |
| | | continue; |
| | | } else { |
| | | missionTaskIssueParam.setSourceCode(basStation.getStationName()); |
| | | } |
| | |
| | | flowStepInstanceService.updateById(flowStepInstance); |
| | | log.error("任务下发失败,源点未查询到目标点未查询到,等待重试...."); |
| | | } |
| | | return; |
| | | continue; |
| | | } else { |
| | | missionTaskIssueParam.setSourceCode(basStation.getStationName()); |
| | | } |
| | |
| | | flowStepInstanceService.updateById(flowStepInstance); |
| | | log.error("任务下发失败,目标点未查询到,等待重试...."); |
| | | } |
| | | return; |
| | | continue; |
| | | } else { |
| | | missionTaskIssueParam.setTargetCode(basStation.getStationName()); |
| | | } |
| | |
| | | flowStepInstanceService.updateById(flowStepInstance); |
| | | log.error("任务下发失败,目标点未查询到,等待重试...."); |
| | | } |
| | | return; |
| | | continue; |
| | | } else { |
| | | missionTaskIssueParam.setTargetCode(basStation.getStationName()); |
| | | } |
| | |
| | | } else if (task.getTaskType().equals(TaskType.TASK_TYPE_PICK_AGAIN_OUT.type) |
| | | || task.getTaskType().equals(TaskType.TASK_TYPE_MERGE_OUT.type) |
| | | || task.getTaskType().equals(TaskType.TASK_TYPE_CHECK_OUT.type)) { |
| | | if (!Cools.isEmpty(task.getResource()) && task.getResource().equals(TaskResouceType.TASK_RESOUCE_WAVE_TYPE.val)){ |
| | | if ((!Cools.isEmpty(task.getResource()) && task.getResource().equals(TaskResouceType.TASK_RESOUCE_WAVE_TYPE.val)) |
| | | // 盘点出库先到 196(非波次) |
| | | ||task.getTaskType().equals(TaskType.TASK_TYPE_CHECK_OUT.type) |
| | | ) { |
| | | task.setTaskStatus(TaskStsType.AWAIT.id); |
| | | } else { |
| | | task.setTaskStatus(TaskStsType.WAVE_SEED.id); |