| | |
| | | // 更新订单 |
| | | OrderDetl orderDetl = orderDetlService.selectOne(new EntityWrapper<OrderDetl>().eq("order_no", pick.getOrderNo()).eq("matnr", pick.getMatnr()).eq("three_code", pick.getThreeCode())); |
| | | orderDetl.setQty(orderDetl.getQty() + pick.getCount()); |
| | | orderDetl.setUpdateTime(new Date()); |
| | | if (!orderDetlService.update(orderDetl, new EntityWrapper<OrderDetl>().eq("order_no", pick.getOrderNo()).eq("matnr", pick.getMatnr()).eq("three_code", pick.getThreeCode()))) { |
| | | throw new CoolException("修改订单明细失败,请联系管理员" + pick.getOrderNo() + pick.getMatnr()); |
| | | } |
| | |
| | | |
| | | AgvBasDevp agvBasDevp = agvBasDevpService.selectOne(new EntityWrapper<AgvBasDevp>().eq("dev_no", stationCode)); |
| | | |
| | | if (agvBasDevp == null) { |
| | | throw new CoolException(stationCode + "站点信息错误"); |
| | | } |
| | | |
| | | if (Cools.eq(agvBasDevp.getBarcode(), barcode)) { |
| | | return; |
| | | } |
| | |
| | | throw new CoolException(barcode + "已经绑定在" + agvBasDevp.getDevNo() + "站点"); |
| | | } |
| | | |
| | | if (agvBasDevp == null) { |
| | | throw new CoolException(stationCode + "站点信息错误"); |
| | | } |
| | | |
| | | if (!"O".equals(agvBasDevp.getLocSts())) { |
| | | throw new CoolException(stationCode + "该站点货位状态非空"); |
| | | } |