| | |
| | | if(StringUtils.isEmpty(param.getLocno())){ |
| | | return "组托成功"; |
| | | }else { |
| | | combBinding(param.getBarcode(),param.getLocno()); |
| | | combBinding(param.getBarcode(),param.getLocno(),param.getContainerType()); |
| | | return "组托成功,绑定站点成功"; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void combBinding(String barcode, String stationCode) { |
| | | public void combBinding(String barcode, String stationCode, Short containerType) { |
| | | |
| | | if(Cools.isEmpty(agvWaitPakinService.selectByContainerCode(barcode))){ |
| | | throw new CoolException("该料箱未组托,无法绑定站点"); |
| | |
| | | |
| | | agvBasDevp.setBarcode(barcode); |
| | | agvBasDevp.setLocSts("F"); |
| | | agvBasDevp.setLocType2(containerType); |
| | | agvBasDevpService.update(agvBasDevp,(new EntityWrapper<AgvBasDevp>().eq("dev_no",stationCode))); |
| | | } |
| | | |