| | |
| | | /*组托 |
| | | * |
| | | * */ |
| | | @RequestMapping(value = "/barcodeMatnr/add1/auth") |
| | | @RequestMapping(value = "/barcodeMatnr/comb/auth") |
| | | @ManagerAuth |
| | | public R comb(WaitPakin waitPakin) { |
| | | Mat mat = matService.selectById(waitPakin.getModiUser()); |
| | |
| | | /*并板 |
| | | * |
| | | * */ |
| | | @RequestMapping(value = "/barcodeMatnr/add2/auth") |
| | | // @RequestMapping(value = "/barcodeMatnr/clamp/auth") |
| | | @ManagerAuth |
| | | public R clamp(WaitPakin waitPakin) { |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())||Cools.isEmpty(waitPakin.getAnfme())){ |
| | | if (Cools.isEmpty(waitPakin.getBarcode())||Cools.isEmpty(waitPakin.getModiUser())){ |
| | | return R.error(BaseRes.PARAM); |
| | | } |
| | | Mat mat = matService.selectById(waitPakin.getModiUser()); |
| | |
| | | mobileService.adjustNew(combParam, Boolean.TRUE, getUserId()); |
| | | return R.ok("并板成功"); |
| | | } |
| | | |
| | | /*批量并板*/ |
| | | @RequestMapping(value = "/barcodeMatnr/clamp/auth") |
| | | @ManagerAuth |
| | | public R clamp2(@RequestBody List<MatBarcode> list){ |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(BaseRes.PARAM); |
| | | } |
| | | for (MatBarcode matBarcode : list) { |
| | | MobileAdjustParam combParam=new MobileAdjustParam(); |
| | | ArrayList<CombParam.CombMat> combMats=new ArrayList<>(); |
| | | CombParam.CombMat combMat=new CombParam.CombMat(); |
| | | combMat.setMatnr(matBarcode.getMatnr()); |
| | | combMat.setMaktx(matBarcode.getMaktx()); |
| | | combMat.setAnfme(1.0); |
| | | combMats.add(combMat); |
| | | combParam.setBarcode(matBarcode.getZpallet()); |
| | | combParam.setCombMats(combMats); |
| | | mobileService.adjustNew(combParam, Boolean.TRUE, getUserId()); |
| | | } |
| | | return R.ok("并板成功"); |
| | | } |
| | | } |