| | |
| | | throw new CoolException("参数:物料重量 wright为空"); |
| | | } |
| | | |
| | | List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>().eq("matnr", param.getMatnr()).eq("weight", param.getWeight()).eq("color", param.getColor())); |
| | | ArrayList<LocDetl> locDetlArrayList = new ArrayList<>(); |
| | | List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>().eq("matnr", param.getMatnr()).eq("weight", param.getWeight())); |
| | | if (locDetls.isEmpty()){ |
| | | locDetls = new ArrayList<LocDetl>(); |
| | | } |
| | | if (locDetls.isEmpty()){ |
| | | for (LocDetl locDetl:locDetls){ |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locDetl.getLocNo())); |
| | | if (locMast.getLocSts().equals("F")){ |
| | | locDetlArrayList.add(locDetl); |
| | | break; |
| | | } |
| | | } |
| | | if (locDetlArrayList.isEmpty()){ |
| | | throw new CoolException("未找到符合条件的物料明细:品号==》matnr:"+param.getMatnr()+";重量==》wright:"+param.getWeight()+";颜色==》color:"+param.getColor()); |
| | | } |
| | | for (LocDetl locDetl : locDetls){ |
| | | for (LocDetl locDetl : locDetlArrayList){ |
| | | StockOutParam stockOutParam = new StockOutParam(param,locDetl); |
| | | workService.startupFullTakeStore(stockOutParam, userId); |
| | | return; |