| | |
| | | case 30: |
| | | br = 3; |
| | | break; |
| | | case 31: |
| | | br = 6; |
| | | break; |
| | | case 40: |
| | | br = 5; |
| | | break; |
| | |
| | | locType = 2; |
| | | } else if (containerType == 30) { |
| | | locType = 3; |
| | | } else if (containerType == 31) { |
| | | locType = 6; |
| | | } else { |
| | | locType = agvBasDevp.getLocType1(); |
| | | } |
| | |
| | | |
| | | // 站点检测 |
| | | AgvBasDevp agvBasDevp = agvBasDevpService.selectById(station); |
| | | if (Cools.isEmpty(agvBasDevp)) { |
| | | throw new CoolException("站点信息不存在"); |
| | | } |
| | | if (!agvBasDevp.getLocSts().equals("O")) { |
| | | throw new CoolException("当前工作位状态为" + agvBasDevp.getLocSts() + ",无法进行空板出库"); |
| | | } |
| | |
| | | throw new CoolException(matnr + "商品维护失败"); |
| | | } |
| | | OrderDetl orderDetl = orderDetlService.selectItem(orderNo, mat.getMatnr(), batch, csocode); |
| | | if (orderDetl == null) { |
| | | throw new CoolException("订单明细不存在"); |
| | | } |
| | | AgvWrkDetl wrkDetl = new AgvWrkDetl(); |
| | | wrkDetl.sync(mat); |
| | | if (orderDetl != null) { |
| | |
| | | wrkMast.setAppeTime(now); |
| | | wrkMast.setModiUser(userId); |
| | | wrkMast.setModiTime(now); |
| | | if (!Cools.isEmpty(locNo) && Cools.isEmpty(pltType)) { |
| | | AgvLocMast agvLocMast = agvLocMastService.selectById(locNo); |
| | | pltType = agvLocMast.getPltType(); |
| | | } |
| | | wrkMast.setPltType(pltType); |
| | | wrkMast.setLogErrMemo("createWaitPainWrkMastStart"); |
| | | |