| | |
| | | storageEscalationParam.setLocType(1); |
| | | }else if(staProtocol.isLow()){ |
| | | storageEscalationParam.setLocType(0); |
| | | }else if (staProtocol.isCentre()){ |
| | | storageEscalationParam.setLocType(2); |
| | | } |
| | | |
| | | storageEscalationParam.setTerminalNo(staProtocol.getSiteId()); |
| | |
| | | staProtocol.setStaNo(inSta.getBackSta().shortValue()); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | log.error("已有入库任务,wms--->任务号:{}",result.getTaskNo()); |
| | | } |
| | | |
| | | } else { |
| | |
| | | staProtocol.setStaNo(inSta.getBackSta().shortValue()); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | log.error("入库异常,wms返回值不符合条件,wms--->{}",response); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | |
| | | staProtocol.setStaNo(inSta.getBackSta().shortValue()); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | log.error("任务已存在,wms--->任务号:{}",result.getTaskNo()); |
| | | } |
| | | |
| | | } else { |
| | |
| | | staProtocol.setStaNo(inSta.getBackSta().shortValue()); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | log.error("请求接口异常,wms--->{}",response); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | |
| | | if (!crnProtocol.getStatusType().equals(CrnStatusType.IDLE) || crnProtocol.getTaskNo() != 0) { |
| | | break; |
| | | } |
| | | // int storeCount = basDevpService.getStoreCount(); |
| | | // if (storeCount >= maxCount) { |
| | | // log.error("输送线暂存数达到上限{}", storeCount); |
| | | // break; |
| | | // } |
| | | |
| | | //输送线只允许存在一个托盘 |
| | | int storeCount = basDevpService.getStoreCount(); |
| | | if (storeCount >= maxCount) { |
| | | log.error("输送线暂存数达到上限,当前输送线托盘数量:{},最大暂存数量:{}", storeCount,maxCount); |
| | | break; |
| | | } |
| | | |
| | | |
| | | // 已经存在吊车执行任务时,则过滤 |