自动化立体仓库 - WMS系统
zyx
2024-03-01 fe7247af6af58cbc8ea2526e8aa4eedaf545de6c
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -487,6 +487,7 @@
    public R plaDetlCheck(@RequestBody JSONObject json){
        String batch = json.get("batch").toString();
        Integer packageNo = Integer.parseInt(json.get("packageNo").toString());
        Integer type = Integer.parseInt(json.get("type").toString());
        if(Cools.isEmpty(batch) || Cools.isEmpty(packageNo)){
            return R.error("有参数为空,无法入库");
        }
@@ -495,7 +496,7 @@
        if ((Cools.isEmpty(pla))){
            return R.error("该包物料未录入,无法查询到相关信息");
        }
        if(!Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_0)){
        if(!Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_0) && type != 2){
            return R.error("该包物料不为待入库状态,无法进行入库操作");
        }
        return R.ok(pla);
@@ -505,6 +506,7 @@
    pla移库
     */
    @RequestMapping("/plaDetl/move/v1")
    @ManagerAuth
    public R plaDetlMove(@RequestBody JSONObject json){
        String batch = json.get("batch").toString();
@@ -519,6 +521,9 @@
        if ((Cools.isEmpty(pla))){
            return R.error("该包物料未录入,无法查询到相关信息");
        }
        if(!Cools.eq(pla.getStatus(),GlobleParameter.PLA_STATUS_1)){
            return R.error("该包物料状态不为已入库状态,无法转移");
        }
        Node node = nodeService.selectByUuid(locNo);
        if(Cools.isEmpty(node)){