skyouc
2025-07-18 a15ad9309f383153d4f5a95a044fb19e882fff55
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java
@@ -27,6 +27,7 @@
import com.zy.asrs.wms.system.service.UserService;
import io.jsonwebtoken.lang.Collections;
import io.netty.util.internal.StringUtil;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
@@ -65,6 +66,7 @@
     * @param barcode
     * @return
     */
    @ApiOperation("入库单据--扫码获取订单明细列表")
    @PostMapping("/mat/auth")
    public R getProductForBarcode(@RequestBody Map<String, String> barcode) {
        if (Objects.isNull(barcode)) {
@@ -283,6 +285,32 @@
    }
    @ApiOperation("获取库位详细")
    @GetMapping("/flat/transfer/{barcode}")
    public R getDetlsBycode(@PathVariable String barcode) {
        if (Objects.isNull(barcode)) {
            return R.error("参数不能为空!!");
        }
        return R.ok().add(mobileService.getDetlsByCode(barcode));
    }
    @ApiOperation("平板转移")
    @PostMapping("/locs/transfer")
    public R changeFlatBarcode(@RequestBody Map<String, String> param) {
        if (Objects.isNull(param)) {
            return R.error("参数不能为空!!");
        }
        if (Objects.isNull(param.get("barcode"))) {
            return R.error("源库位不能为空!!");
        }
        if (Objects.isNull(param.get("tarCode"))) {
            return R.error("目标库位不能为空!!");
        }
        return mobileService.transferLocs(param);
    }
    /**
     * 获取发货订单明细
     * @return
@@ -295,6 +323,31 @@
        return mobileService.selectShippingDetl(params);
    }
    /**
     * @author Ryan
     * @date 2025/6/28
     * @description: 获取推荐库位
     * @version 1.0
     */
    @GetMapping("/recommend/locs")
    public R getRecommend() {
        return  mobileService.getRecommendLocs();
    }
    /**
     * @author Ryan
     * @date 2025/6/28
     * @description: 查询物料信息
     * @version 1.0
     */
    @GetMapping("/mats/search/{matnr}")
    public R getMats(@PathVariable String matnr) {
        return mobileService.getMatsByCode(matnr);
    }
    /**
     * 确认发货单明细
     * @return
@@ -304,6 +357,7 @@
        if (params.isEmpty()) {
            throw new CoolException("发货单明细不能为空!!");
        }
        return mobileService.confirmShippingDetl(params);
    }
}