自动化立体仓库 - WMS系统
#
zyx
2024-06-05 ae7bca6082139d8f524a5aedd08e940de83356f4
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -431,6 +431,10 @@
    public R plaPackIn(@RequestBody JSONObject json) throws ParseException {
        String locNo = json.get("locNo").toString();
        JSONArray jsonArray = JSONArray.parseArray(json.getJSONArray("pla").toJSONString());
        //判断此次入库是否达到库存上限
        if(!mobileService.checkMaximum(locNo,jsonArray.size())){
            return R.error("当前入库包数已超过库存上限");
        }
        for (Object o : jsonArray){
            JSONObject jsonObject = (JSONObject)o;
            String brand = jsonObject.get("brand").toString();
@@ -569,6 +573,10 @@
        }
        List<PlaMoveParam.PlaMove> plas = param.getPlas();
        //判断此次入库是否达到库存上限
        if(!mobileService.checkMaximum(locNo,plas.size())){
            return R.error("当前入库包数已超过库存上限");
        }
        param.getPlas().forEach(p -> {
            String brand = p.getBrand();