DESKTOP-LMJ82IJ\Eno
2025-01-07 adfce6c5a94c7aefa9b5d4f67e63db7eaac268d9
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java
@@ -6,6 +6,7 @@
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;
@@ -80,7 +81,7 @@
     * 2. 库位置为在库状态
     * @return
     */
    @PostMapping("matnr/in/barcode")
    @PostMapping("/matnr/in/barcode")
    public R pakinToStock(@RequestBody PakinOnShelvesParams shelvesParams) {
        if (StringUtil.isNullOrEmpty(shelvesParams.getBarcode())) {
            return R.error("拖盘码不能为空!!");
@@ -89,17 +90,21 @@
            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));