| | |
| | | if (locMast == null) { |
| | | return false; |
| | | } |
| | | Integer nowQua = this.baseMapper.selectEmptyLocCount0(locMast.getLocType1(), locMast.getLocType2(), locMast.getCrnNo()); |
| | | Integer nowQua = 0; |
| | | nowQua = this.baseMapper.selectEmptyLocCount0(locMast.getLocType1(), locMast.getLocType2(), locMast.getCrnNo()); |
| | | if (Cools.isEmpty(nowQua)) { |
| | | nowQua = 0; |
| | | } |
| | | boolean res = nowQua > quaOfBlank; |
| | | if (!res) { |
| | | log.warn("{}号堆垛机库位不足,因滞留空库位{}个,目前空库位{}个", locMast.getCrnNo(), quaOfBlank, nowQua); |
| | |
| | | // 浅库位对应堆垛机必须可用且无异常 |
| | | if (basCrnpService.checkSiteError(locMast0.getCrnNo(), true)) { |
| | | // 因库位移转、需预留空库位 |
| | | if (locMastService.checkEmptyCount0(locMast0, 6)) { |
| | | if (locMastService.checkEmptyCount0(locMast0, 2)) { |
| | | locMast = locMast0; |
| | | } |
| | | } |