| | |
| | | |
| | | @Override |
| | | public Boolean checkEmptyCount(LocMast locMast, int quaOfBlank) { |
| | | // quaOfBlank = 0; |
| | | if (locMast == null) { |
| | | return false; |
| | | } |
| | | Integer nowQua = this.baseMapper.selectEmptyLocCount(locMast.getLocType1(), locMast.getLocType2(), locMast.getCrnNo()); |
| | | boolean res = nowQua > quaOfBlank; |
| | | if (!res) { |
| | | log.warn("{}号堆垛机库位不足,因滞留空库位{}个,目前空库位{}个", locMast.getCrnNo(), quaOfBlank, nowQua); |
| | | } |
| | | return res; |
| | | } |
| | | @Override |
| | | public Boolean checkEmptyCount0(LocMast locMast, int quaOfBlank) { |
| | | if (locMast == null) { |
| | | return false; |
| | | } |
| | | 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); |
| | |
| | | |
| | | @Override |
| | | public List<LocMast> findOutMast(Short locType1, List<Integer> crnNos) { |
| | | if (crnNos.size() == 0) { |
| | | return null; |
| | | } |
| | | return this.baseMapper.findOutMast(locType1, crnNos); |
| | | } |
| | | |
| | | @Override |
| | | public LocMast findInEmptyLocMast(Short locType1, List<Integer> rows) { |
| | | return this.baseMapper.findInEmptyLocMast(locType1, rows); |
| | | public List<LocMast> findInEmptyLocMast(Short locType1, List<Integer> rows, Integer crnNo) { |
| | | return this.baseMapper.findInEmptyLocMast(locType1, rows, crnNo); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> findEmptyLocMastByLocNos(Short locType1, List<String> locNos) { |
| | | return this.baseMapper.findEmptyLocMastByLocNos(locType1, locNos); |
| | | public List<LocMast> findInEmptyLocMastNew(Short locType1, List<String> locNos, Integer crnNo) { |
| | | return this.baseMapper.findInEmptyLocMastNew(locType1, locNos, crnNo); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> findEmptyLowFrequencyLocMast(Short locType1) { |
| | | return this.baseMapper.findEmptyLowFrequencyLocMast(locType1); |
| | | public List<LocMast> findEmptyLocMastByLocNos(Short locType1, List<String> locNos, Integer crnNo) { |
| | | return this.baseMapper.findEmptyLocMastByLocNos(locType1, locNos, crnNo); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> findEmptyLowFrequencyLocMast(Short locType1, Integer crnNo) { |
| | | return this.baseMapper.findEmptyLowFrequencyLocMast(locType1, crnNo); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> findEmptyLocMast(Short locType1, Integer crnNo) { |
| | | return this.baseMapper.findEmptyLocMast(locType1, crnNo); |
| | | } |
| | | |
| | | @Override |