| | |
| | | StationThread stationThread, |
| | | StationObjModel stationObjModel, |
| | | StationProtocol stationProtocol) { |
| | | if (!stationProtocol.isAutoing()) { |
| | | return false; |
| | | } |
| | | |
| | | if (!stationProtocol.isLoading()) { |
| | | return false; |
| | | } |
| | | |
| | | if (stationProtocol.getError() <= 0) { |
| | | return true; |
| | | } |
| | |
| | | stationCommandDispatcher.dispatch(basDevp.getDevpNo(), command, "gsl-process", "station-back"); |
| | | News.taskInfo(stationProtocol.getTaskNo(), "{}扫码异常,已退回至{}", backStation.getStationId()); |
| | | redisUtil.set(RedisKeyType.GENERATE_STATION_BACK_LIMIT.key + stationProtocol.getStationId(), "lock", 10); |
| | | return true; |
| | | return false; |
| | | } |
| | | |
| | | } |