| | |
| | | , @Param("rowsLen") Integer rowsLen, @Param("locType1") Short locType1, @Param("inoutEveryday") Boolean inoutEveryday |
| | | , @Param("rowBeg") Integer rowBeg, @Param("rowEnd") Integer rowEnd, @Param("bayBeg") Integer bayBeg |
| | | , @Param("bayEnd") Integer bayEnd, @Param("levBeg") Integer levBeg, @Param("levEnd") Integer levEnd); |
| | | List<LocMast> queryFreeLocMastEnd(@Param("row") Integer row); |
| | | List<LocMast> queryFreeLocMastEnd0(@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("row1") Integer row); |
| | | List<LocMast> queryFreeLocMastEnd(@Param("row") Integer row, @Param("locType1") Short locType1); |
| | | List<LocMast> queryFreeLocMastEnd0(@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("row1") Integer row, @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); |
| | |
| | | List<LocMast> queryFreeLocMast0(List<Integer> rows, Integer rowsLen, Short locType1,Boolean inoutEveryday); |
| | | List<LocMast> queryFreeLocMast1(List<Integer> rows, Integer rowsLen, Short locType1,Boolean inoutEveryday |
| | | , Integer rowBeg, Integer rowEnd, Integer bayBeg, Integer bayEnd, Integer levBeg, Integer levEnd); |
| | | List<LocMast> queryFreeLocMastEnd(Integer row); |
| | | List<LocMast> queryFreeLocMastEnd0(Integer bay,Integer lev,Integer row); |
| | | List<LocMast> queryFreeLocMastEnd(Integer row, Short locType1); |
| | | List<LocMast> queryFreeLocMastEnd0(Integer bay,Integer lev,Integer row, Short locType1); |
| | | |
| | | /** |
| | | * 获取同组货架的空库位 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> queryFreeLocMastEnd(Integer row){ |
| | | return this.baseMapper.queryFreeLocMastEnd(row); |
| | | public List<LocMast> queryFreeLocMastEnd(Integer row, Short locType1){ |
| | | return this.baseMapper.queryFreeLocMastEnd(row, locType1); |
| | | } |
| | | @Override |
| | | public List<LocMast> queryFreeLocMastEnd0(Integer bay,Integer lev,Integer row){ |
| | | return this.baseMapper.queryFreeLocMastEnd0(bay,lev,row); |
| | | public List<LocMast> queryFreeLocMastEnd0(Integer bay,Integer lev,Integer row, Short locType1){ |
| | | return this.baseMapper.queryFreeLocMastEnd0(bay,lev,row, locType1); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | // 2.无库位时,无视区域锁定,重新查找库位 |
| | | if (Cools.isEmpty(locMast)){ |
| | | List<LocMast> locMasts = locMastService.queryFreeLocMastEnd(curRow); |
| | | List<LocMast> locMasts = locMastService.queryFreeLocMastEnd(curRow, locTypeDto.getLocType1()); |
| | | int sign=curRow; |
| | | while (true){ |
| | | if (locMasts.size()==0){ |
| | | sign = getCurRow(sign); |
| | | if (sign != 0){ |
| | | locMasts = locMastService.queryFreeLocMastEnd(sign); |
| | | locMasts = locMastService.queryFreeLocMastEnd(sign, locTypeDto.getLocType1()); |
| | | }else { |
| | | break; |
| | | } |
| | |
| | | } |
| | | } |
| | | for (LocMast locMast1 : locMasts){ |
| | | List<LocMast> locMasts1 = locMastService.queryFreeLocMastEnd0(locMast1.getBay1(), locMast1.getLev1(),locMast1.getRow1()); |
| | | List<LocMast> locMasts1 = locMastService.queryFreeLocMastEnd0(locMast1.getBay1(), locMast1.getLev1(),locMast1.getRow1(), locTypeDto.getLocType1()); |
| | | Integer innermostRow = Utils.getInnermostRow(locMasts1.get(0).getLocNo()); |
| | | for (LocMast locMast2:locMasts1){ |
| | | if (locMast2.getLocSts().equals("O")){ |
| | |
| | | from asr_loc_mast |
| | | where row1=#{row} |
| | | and loc_sts='O' |
| | | <if test="locType1 != null"> |
| | | and loc_type1 = #{locType1} |
| | | </if> |
| | | and loc_no not in ('0100101', '0200101', '0300101', '1200701', '1300701', '1400701', '1900401', '2000401', '2100401') |
| | | order by loc_sts desc ,lev1 asc,bay1 asc |
| | | </select> |
| | |
| | | where bay1=#{bay} |
| | | and lev1=#{lev} |
| | | -- and loc_sts='O' |
| | | <if test="locType1 != null"> |
| | | and loc_type1 = #{locType1} |
| | | </if> |
| | | and loc_no not in ('0100101', '0200101', '0300101', '1200701', '1300701', '1400701', '1900401', '2000401', '2100401') |
| | | <if test="row1 >= 1 and row1 <= 3"> |
| | | and row1 >= 1 and row1 <= 3 |