| | |
| | | crnProtocol.setLastIo("O"); |
| | | } |
| | | } else if (basCrnp.getOutEnable().equals("Y")) { |
| | | this.locToCrnStn(crn, crnProtocol); // 出库 |
| | | crnProtocol.setLastIo("I"); |
| | | // 出库 |
| | | if (this.locToCrnStn(crn, crnProtocol)) { |
| | | crnProtocol.setLastIo("I"); |
| | | } |
| | | } |
| | | } |
| | | // 如果最近一次是出库模式 |
| | | else if (crnProtocol.getLastIo().equals("O")) { |
| | | if (basCrnp.getOutEnable().equals("Y")) { |
| | | this.locToCrnStn(crn, crnProtocol); // 出库 |
| | | crnProtocol.setLastIo("I"); |
| | | // 出库 |
| | | if (this.locToCrnStn(crn, crnProtocol)) { |
| | | crnProtocol.setLastIo("I"); |
| | | } |
| | | } else if (basCrnp.getInEnable().equals("Y")) { |
| | | // 入库 |
| | | if (this.crnStnToLoc(crn, crnProtocol)) { |
| | |
| | | continue; |
| | | } |
| | | |
| | | |
| | | // 已经存在吊车执行任务时,则过滤 |
| | | if (wrkMastMapper.selectWorking(slave.getId()) != null) { |
| | | continue; |
| | | } |
| | | |
| | | |
| | | // 最外层库位,直接堆垛机出库 |
| | | if (locMastService.isOutMost(wrkMast.getLocNo())) { |
| | | // 已经存在吊车执行任务时,则过滤 |
| | | if (wrkMastMapper.selectWorking(slave.getId()) != null) { |
| | | continue; |
| | | } |
| | | |
| | | // 堆垛机出库 命令下发区 -------------------------------------------------------------------------- |
| | | CrnCommand crnCommand = new CrnCommand(); |
| | | crnCommand.setCrnNo(slave.getId()); // 堆垛机编号 |
| | |
| | | } |
| | | } |
| | | if (wrkMast.getWrkSts() == 15L) { |
| | | // 已经存在吊车执行任务时,则过滤 |
| | | if (wrkMastMapper.selectWorking(slave.getId()) != null) { |
| | | continue; |
| | | } |
| | | |
| | | // 堆垛机出库 命令下发区 -------------------------------------------------------------------------- |
| | | CrnCommand crnCommand = new CrnCommand(); |