| | |
| | | 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()); |
| | | } |