| | |
| | | import com.core.common.R; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.CombParam; |
| | | import com.zy.asrs.entity.param.MobileAdjustParam; |
| | | import com.zy.asrs.entity.param.OffSaleParam; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.entity.result.MobileAdjustResult; |
| | | import com.zy.asrs.mapper.ManLocDetlMapper; |
| | | import com.zy.asrs.service.*; |
| | |
| | | private PackService packService; |
| | | @Autowired |
| | | private ManLocDetlMapper manLocDetlMapper; |
| | | @Autowired |
| | | private WrkDetlLogService wrkDetlLogService; |
| | | |
| | | |
| | | // 商品上架 |
| | |
| | | return R.ok().add(combParams); |
| | | } |
| | | |
| | | @RequestMapping("/wrkDetl/search/batch/auth") |
| | | @ManagerAuth(memo = "出库确认获取信息") |
| | | public R wrkDetlSearchByBatch(@RequestBody String batch){ |
| | | if (Cools.isEmpty(batch)){ |
| | | return R.error("参数为空"); |
| | | } |
| | | // List<Order> orders = orderService.selectorderNoL(batch); |
| | | WrkDetl wrkDetl = wrkDetlService.selectOne(new EntityWrapper<WrkDetl>().eq("batch", batch)); |
| | | if (Cools.isEmpty(wrkDetl)){ |
| | | WrkDetlLog wrkDetlLog = wrkDetlLogService.selectOne(new EntityWrapper<WrkDetlLog>().eq("batch", batch)); |
| | | if (Cools.isEmpty(wrkDetlLog)){ |
| | | return R.error("未查到数据"); |
| | | } |
| | | wrkDetl = new WrkDetl(); |
| | | wrkDetl.sync(wrkDetlLog); |
| | | wrkDetl.setBatch(wrkDetlLog.getBatch()); |
| | | wrkDetl.setBarcode(wrkDetlLog.getBarcode()); |
| | | wrkDetl.setDeadTime(wrkDetlLog.getDeadTime()); |
| | | } |
| | | if (Cools.isEmpty(wrkDetl)){ |
| | | return R.error("未查到数据"); |
| | | } |
| | | return R.ok().add(wrkDetl); |
| | | } |
| | | |
| | | @RequestMapping("/order/search/batch/auth") |
| | | @ManagerAuth(memo = "出库确认") |
| | | public R orderSearchByBatch(@RequestBody String batch){ |
| | | if (Cools.isEmpty(batch)){ |
| | | return R.error("参数为空"); |
| | | } |
| | | String orderNo = ""; |
| | | WrkDetl wrkDetl = wrkDetlService.selectOne(new EntityWrapper<WrkDetl>().eq("batch", batch)); |
| | | if (Cools.isEmpty(wrkDetl)) { |
| | | WrkDetlLog wrkDetlLog = wrkDetlLogService.selectOne(new EntityWrapper<WrkDetlLog>().eq("batch", batch)); |
| | | if (Cools.isEmpty(wrkDetlLog)) { |
| | | return R.error("未查到数据"); |
| | | } |
| | | orderNo=wrkDetlLog.getOrderNo(); |
| | | }else { |
| | | orderNo=wrkDetl.getOrderNo(); |
| | | } |
| | | // List<Order> orders = orderService.selectorderNoL(batch); |
| | | OrderDetl orderDetl = orderDetlService.selectOne(new EntityWrapper<OrderDetl>().eq("batch", batch).eq("order_no",orderNo)); |
| | | if (Cools.isEmpty(orderDetl)){ |
| | | return R.error("未查到数据"); |
| | | } |
| | | if (!orderDetl.getQty$().equals("已完成")){ |
| | | return R.error("任务未完成"); |
| | | } |
| | | orderDetl.setSource(1); |
| | | orderDetlService.updateById(orderDetl); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping("/truss/auth") |
| | | @ManagerAuth(memo = "退库,1楼桁架退库") |
| | | public R trussComb(@RequestBody TrussCombParam combParam){ |
| | | mobileService.trussComb(combParam, getUserId()); |
| | | return R.ok("组托成功"); |
| | | } |
| | | |
| | | @RequestMapping("/truss/comd/auth") |
| | | @ManagerAuth(memo = "手动入库,2楼无需桁架手动入库") |
| | | public R trussComb2(@RequestBody PalletizingCompleteParam combParam){ |
| | | mobileService.trussComb2(combParam, getUserId()); |
| | | return R.ok("组托成功"); |
| | | } |
| | | |
| | | @RequestMapping("/comb/auth") |
| | | @ManagerAuth(memo = "组托") |
| | | public R comb(@RequestBody CombParam combParam){ |