#出库异常:同一源站存在多笔搬运完成任务,不下发命令
| | |
| | | return; |
| | | } |
| | | |
| | | long sameStationCount = wrkMastService.count(new QueryWrapper<WrkMast>() |
| | | .eq("wrk_sts", WrkStsType.OUTBOUND_RUN_COMPLETE.sts) |
| | | .eq("source_sta_no", stationObjModel.getStationId())); |
| | | if (sameStationCount > 1) { |
| | | News.taskError(wrkMast.getWrkNo(), "出库异常:同一源站存在多笔搬运完成任务,不下发命令。源站={},数量={}", |
| | | stationObjModel.getStationId(), sameStationCount); |
| | | return; |
| | | } |
| | | |
| | | StationThread stationThread = (StationThread) SlaveConnection.get(SlaveType.Devp, stationObjModel.getDeviceNo()); |
| | | if (stationThread == null) { |
| | | return; |