| | |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())||Cools.isEmpty(waitPakin.getAnfme())){ |
| | | return R.error(BaseRes.PARAM); |
| | | } |
| | | if (waitPakin.getBarcode().length() != 8) { |
| | | throw new CoolException("条码长度不是8位===>>" + waitPakin.getBarcode()); |
| | | } |
| | | if (Integer.parseInt(waitPakin.getBarcode().substring(0,1)) < 4 || Integer.parseInt(waitPakin.getBarcode().substring(0,1)) > 8 ){ |
| | | throw new CoolException("不存在的托盘码类型:"+waitPakin.getBarcode().substring(0,1)); |
| | | } |
| | | mobileService.combToWms(waitPakin); |
| | | return R.ok("组托成功"); |
| | | } |
| | |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())||Cools.isEmpty(waitPakin.getAnfme())){ |
| | | return R.error(BaseRes.PARAM); |
| | | } |
| | | if (waitPakin.getBarcode().length() != 8) { |
| | | throw new CoolException("条码长度不是8位===>>" + waitPakin.getBarcode()); |
| | | } |
| | | if (Integer.parseInt(waitPakin.getBarcode().substring(0,1)) < 4 || Integer.parseInt(waitPakin.getBarcode().substring(0,1)) > 8 ){ |
| | | throw new CoolException("不存在的托盘码类型:"+waitPakin.getBarcode().substring(0,1)); |
| | | } |
| | | Mat mat = matService.selectById(waitPakin.getModiUser()); |
| | | MobileAdjustParam combParam=new MobileAdjustParam(); |
| | | ArrayList<CombParam.CombMat> combMats=new ArrayList<>(); |