| | |
| | | //预留空库位 |
| | | Integer count = locMastMapper.selectCount(new EntityWrapper<LocMast>().eq("loc_sts", "O") |
| | | .eq("loc_type2", mast.getLocType2()).eq("crn_no", mast.getCrnNo())); |
| | | if (tmp != null && count > 10) { |
| | | if (tmp != null && count > 5) { |
| | | locMast = tmp; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | // // 以上都没有合适的库位,则按顺序取一个空库位 |
| | | // if (locMast == null){ |
| | | // locMast = locMasts.get(0); |
| | | // } |
| | | // 以上都没有合适的库位,则按顺序取一个空库位 |
| | | if (locMast == null && !locMasts.isEmpty()){ |
| | | locMast = locMasts.get(0); |
| | | } |
| | | |
| | | // if (locMast != null) { |
| | | // log.info("-------------:找到了新库位【{}】", locMast.getLocNo()); |