| | |
| | | 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(); |
| | |
| | | } |
| | | |
| | | List<PlaMoveParam.PlaMove> plas = param.getPlas(); |
| | | //判断此次入库是否达到库存上限 |
| | | if(!mobileService.checkMaximum(locNo,plas.size())){ |
| | | return R.error("当前入库包数已超过库存上限"); |
| | | } |
| | | |
| | | param.getPlas().forEach(p -> { |
| | | String brand = p.getBrand(); |