| | |
| | | @Repository |
| | | public interface LocMastMapper extends BaseMapper<LocMast> { |
| | | |
| | | List<LocMast> queryFreeLocMast(@Param("row") Integer row, @Param("rows") List<Integer> rows, @Param("rowsLen") Integer rowsLen, @Param("locType1") Short locType1); |
| | | List<LocMast> queryFreeLocMast(@Param("rows") List<Integer> rows, @Param("rowsLen") Integer rowsLen, @Param("locType1") Short locType1); |
| | | |
| | | @Select("select loc_no from asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo}") |
| | | List<String> queryGroupEmptyStock(Integer crnNo); |
| | |
| | | /** |
| | | * 检索可用库位 |
| | | */ |
| | | LocMast queryFreeLocMast(Integer row, List<Integer> rows, Integer rowsLen, Short locType1); |
| | | LocMast queryFreeLocMast(List<Integer> rows, Integer rowsLen, Short locType1); |
| | | |
| | | /** |
| | | * 获取同组货架的空库位 |
| | |
| | | private RowLastnoService rowLastnoService; |
| | | |
| | | @Override |
| | | public LocMast queryFreeLocMast(Integer row, List<Integer> rows, Integer rowsLen, Short locType1) { |
| | | List<LocMast> locMasts = this.baseMapper.queryFreeLocMast(row, rows, rowsLen, locType1); |
| | | public LocMast queryFreeLocMast(List<Integer> rows, Integer rowsLen, Short locType1) { |
| | | List<LocMast> locMasts = this.baseMapper.queryFreeLocMast(rows, rowsLen, locType1); |
| | | if (Cools.isEmpty(locMasts)) { |
| | | return null; |
| | | } |
| | |
| | | LocMast locMast = this.selectById(outerLocNo); |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | if (locMast == null) { |
| | | List<Integer> rows = Utils.getGroupLoc(curRow); |
| | | |
| | | locMast = locMastService.queryFreeLocMast(null, rows, rows.size(), locTypeDto.getLocType1()); |
| | | locMast = locMastService.queryFreeLocMast(rows, rows.size(), locTypeDto.getLocType1()); |
| | | // 因库位移转、需预留空库位 |
| | | // if (!locMastService.checkEmptyCount(locMast)) { |
| | | // locMast = null; |