| | |
| | | import com.zy.asrs.framework.annotations.ManagerAuth;
|
| | | import com.zy.asrs.framework.common.Cools;
|
| | | import com.zy.asrs.framework.common.R;
|
| | | import com.zy.asrs.wms.asrs.entity.Loc;
|
| | | import com.zy.asrs.wms.asrs.entity.Order;
|
| | | import com.zy.asrs.wms.asrs.entity.WaitPakin;
|
| | | import com.zy.asrs.wms.asrs.entity.dto.OrderInfoDto;
|
| | |
| | | * 2. 库位置为在库状态
|
| | | * @return
|
| | | */
|
| | | @PostMapping("matnr/in/barcode")
|
| | | @PostMapping("/matnr/in/barcode")
|
| | | public R pakinToStock(@RequestBody PakinOnShelvesParams shelvesParams) {
|
| | | if (StringUtil.isNullOrEmpty(shelvesParams.getBarcode())) {
|
| | | return R.error("拖盘码不能为空!!");
|
| | |
| | | return R.error("库位不能为空!!");
|
| | | }
|
| | | //TODO 绑定库位,添加库位明细
|
| | | if (mobileService.pakinToStock(shelvesParams)) {
|
| | | return R.ok("入库成功!!");
|
| | | } else {
|
| | | return R.error("入库失败!!");
|
| | | }
|
| | |
|
| | | return R.ok();
|
| | | }
|
| | |
|
| | | /**
|
| | | * 获取拖码盘绑定商品
|
| | | * @return
|
| | | */
|
| | | @GetMapping("barcode/matnr/{code}")
|
| | | @GetMapping("/barcode/matnr/{code}")
|
| | | public R getAllGoods(@PathVariable String code) {
|
| | | if (!StringUtil.isNullOrEmpty(code)) {
|
| | | if (StringUtil.isNullOrEmpty(code)) {
|
| | | return R.error("托盘码不能为空!!");
|
| | | }
|
| | | List<WaitPakin> waitPakins = waitPakinService.list(new LambdaQueryWrapper<WaitPakin>().eq(WaitPakin::getBarcode, code).eq(WaitPakin::getIoStatus, 0));
|