| | |
| | | for(StockOutParam.LocDetl one : param.getLocDetls()){ |
| | | locs.add(one.getLocNo()); |
| | | } |
| | | boolean sign = false; |
| | | boolean sign = true; |
| | | for (StockOutParam.LocDetl locDetl : param.getLocDetls()) { |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", locDetl.getLocNo())); |
| | | //获取同一库位组的外侧库位号 |
| | | List<String> groupOuterSingleLoc = Utils.getGroupOuterSingleLoc(locDetl.getLocNo()); |
| | | if (Utils.getBay(locDetl.getLocNo())>=21){ |
| | | if (locMast.getLocType2().equals((short)3)){ |
| | | groupOuterSingleLoc = Utils.getGroupOuterSingleLocLowFrequency(locDetl.getLocNo()); |
| | | } |
| | | |
| | | if (!sign){ |
| | | if (sign){ |
| | | if (locMast.getLocType2().equals((short)3)) { |
| | | sign = false; |
| | | } |
| | | for (String locNo : groupOuterSingleLoc) { |
| | | //每个库位的库位明细 |
| | | if(locs.contains(locNo)) continue; |
| | | for (LocDetl detl : locDetlService.selectByLocNo(locNo)) { |
| | | if (!detl.getMatnr().equals(locDetl.getMatnr())) { |
| | | //不是相同物料 |
| | | if (Utils.getBay(locDetl.getLocNo())>=21){ |
| | | if (!sign){ |
| | | locDetls.add(new StockOutParam.LocDetl(detl.getLocNo(), detl.getMatnr(), detl.getBatch(), detl.getAnfme())); |
| | | } |
| | | continue; |
| | |
| | | locDetls.add(new StockOutParam.LocDetl(detl.getLocNo(), detl.getMatnr(), detl.getBatch(), detl.getAnfme())); |
| | | } |
| | | } |
| | | sign = true; |
| | | } |
| | | locDetls.add(locDetl); |
| | | } |