| | |
| | | } |
| | | |
| | | @Override |
| | | public LocMast queryFreeLocMast0(Integer row, Short locType1) { |
| | | return this.baseMapper.queryFreeLocMast0(row, locType1); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> queryGroupEmptyStock(String sourceLocNo) { |
| | | if (Cools.isEmpty(sourceLocNo)) { |
| | | return null; |
| | |
| | | if (locMast == null) { |
| | | return false; |
| | | } |
| | | return this.baseMapper.selectEmptyLocCount(locMast.getLocType1(), locMast.getCrnNo()) > 1; |
| | | return this.baseMapper.selectEmptyLocCount(locMast.getCrnNo()) > 1; |
| | | } |
| | | |
| | | @Override |
| | |
| | | } else { |
| | | throw new RuntimeException("库位解析异常"); |
| | | } |
| | | |
| | | for (int i = 0; i<locNos.size(); i++) { |
| | | // 入库外层库位滞空 |
| | | for (int i = 0; i<locNos.size() - 1; i++) { |
| | | LocMast locMast = this.selectById(locNos.get(i)); |
| | | if (locMast.getLocSts().equals("O")) { |
| | | if (i == 0) { |
| | |
| | | workService.shuttleTransfer(groupLoc); |
| | | } |
| | | |
| | | @Override |
| | | public Integer getOutCrnNo(LocMast locMast) { |
| | | int row = Utils.getRow(locMast.getLocNo()); |
| | | if (CommonService.FIRST_GROUP_ROW_LIST.contains(row)) { |
| | | return 1; |
| | | } |
| | | if (CommonService.SECOND_GROUP_ROW_LIST.contains(row)) { |
| | | return 3; |
| | | } else { |
| | | return locMast.getCrnNo(); |
| | | } |
| | | } |
| | | |
| | | } |