|  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private CommonService commonService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    @PostMapping("/agv/start") | 
|---|
|  |  |  | //    @ManagerAuth | 
|---|
|  |  |  | //    public R pdaStockCheck(@RequestBody StockCheckParam param){ | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/agv/start") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | public R pdaAgvStart(@RequestBody Map<String,Object> map){ | 
|---|
|  |  |  | 
|---|
|  |  |  | @RequestMapping("/comb/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "组托") | 
|---|
|  |  |  | public R comb(@RequestBody CombParam combParam){ | 
|---|
|  |  |  | mobileService.comb(combParam, getUserId()); | 
|---|
|  |  |  | return R.ok("组托成功"); | 
|---|
|  |  |  | if (Cools.isEmpty(combParam.getBarcode(), combParam.getCombMats())) { | 
|---|
|  |  |  | throw new CoolException(BaseRes.PARAM); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>() | 
|---|
|  |  |  | .eq("barcode", combParam.getBarcode()) | 
|---|
|  |  |  | .eq("io_type", 104) | 
|---|
|  |  |  | .in("wrk_sts", 14,105)); | 
|---|
|  |  |  | if (Cools.isEmpty(wrkMast)) { | 
|---|
|  |  |  | mobileService.comb(combParam, getUserId()); | 
|---|
|  |  |  | return R.ok("组托成功"); | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | mobileService.mergeComb(combParam, getUserId()); | 
|---|
|  |  |  | return R.ok("并板成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/pingKu/Shelves/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "平库上架") | 
|---|
|  |  |  | public R pingKuShelves(@RequestBody CombParam combParam){ | 
|---|
|  |  |  | if (Cools.isEmpty(combParam.getLocno(), combParam.getCombMats())) { | 
|---|
|  |  |  | throw new CoolException(BaseRes.PARAM); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | mobileService.pingKuShelves(combParam, getUserId()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/pingKu/unShelves/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "平库下架") | 
|---|
|  |  |  | public R pingKuUnShelves(@RequestBody CombParam combParam){ | 
|---|
|  |  |  | if (Cools.isEmpty(combParam.getLocno(), combParam.getCombMats())) { | 
|---|
|  |  |  | throw new CoolException(BaseRes.PARAM); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | mobileService.pingKuUnShelves(combParam, getUserId()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/pack/get/auth") | 
|---|
|  |  |  | 
|---|
|  |  |  | return R.ok("盘点成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/pda/adjust/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "pda盘点") | 
|---|
|  |  |  | public R pdaAdjust(@RequestBody pdaAdjustParam param){ | 
|---|
|  |  |  | mobileService.pdaAdjust(param,getUserId()); | 
|---|
|  |  |  | return R.ok("盘点成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/order/out/pakout/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "订单出库") | 
|---|
|  |  |  | public synchronized R pakoutByOrder(@RequestBody JSONObject param) { | 
|---|
|  |  |  | 
|---|
|  |  |  | return R.ok("出库成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @GetMapping("/checkOut/submit/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "盘点上传") | 
|---|
|  |  |  | public R CheckOutUploadERP(@RequestParam String orderId){ | 
|---|
|  |  |  | mobileService.inventoryUpload(orderId); | 
|---|
|  |  |  | return R.ok("盘点成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/ddd/ddd") | 
|---|
|  |  |  | @ManagerAuth() | 
|---|
|  |  |  | public R ddd() { | 
|---|
|  |  |  | int w = 64; | 
|---|
|  |  |  | for (int i = 17; i <= 37; i++) { | 
|---|
|  |  |  | for (int j = 1;j<=14;j++){ | 
|---|
|  |  |  | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 1)); | 
|---|
|  |  |  | LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 2)); | 
|---|
|  |  |  | LocMast locMast3 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 3)); | 
|---|
|  |  |  | for (int j = 1;j<=3;j++){ | 
|---|
|  |  |  | //            LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 7).eq("lev1", j)); | 
|---|
|  |  |  | LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 12).eq("lev1", j)); | 
|---|
|  |  |  | LocMast locMast3 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 14).eq("lev1", j)); | 
|---|
|  |  |  | //            LocMast locMast4 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", 26).eq("bay1", i).eq("lev1", 1)); | 
|---|
|  |  |  | if (locMast.getGro1() == 999){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //            if (locMast.getGro1() == 999){ | 
|---|
|  |  |  | //                continue; | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | //            locMast.setGro1(w); | 
|---|
|  |  |  | locMast2.setGro1(locMast.getGro1()+100); | 
|---|
|  |  |  | locMast3.setGro1(locMast.getGro1()+200); | 
|---|
|  |  |  | //            locMast.setGro1(locMast.getGro1()+1000); | 
|---|
|  |  |  | locMast2.setGro1(locMast2.getGro1()+10000); | 
|---|
|  |  |  | locMast3.setGro1(locMast3.getGro1()+2000); | 
|---|
|  |  |  | //            locMast4.setGro1(w); | 
|---|
|  |  |  | //            locMastService.updateById(locMast); | 
|---|
|  |  |  | locMastService.updateById(locMast2); | 
|---|