| | |
| | | } catch (Exception ignore) { |
| | | continue; |
| | | } |
| | | if (wrkMast == null || isStationTraceActiveWrkStatus(wrkMast.getWrkSts())) { |
| | | if (wrkMast == null) { |
| | | Integer currentStationId = state.currentStationId != null ? state.currentStationId : state.finalTargetStationId; |
| | | Map<String, Object> details = new LinkedHashMap<>(); |
| | | details.put("reason", "wrk_missing"); |
| | | state.markTerminal(state.traceVersion, STATUS_FINISHED, currentStationId, null, |
| | | "AUTO_FINISHED", "输送任务档已不存在,轨迹自动结束", details); |
| | | persistState(state); |
| | | continue; |
| | | } |
| | | if (isStationTraceActiveWrkStatus(wrkMast.getWrkSts())) { |
| | | continue; |
| | | } |
| | | Integer currentStationId = state.currentStationId != null ? state.currentStationId : state.finalTargetStationId; |