| | |
| | | |
| | | /** |
| | | * 生成工作号 |
| | | * |
| | | * @param wrkMk |
| | | * @return workNo(工作号) |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 检索库位号 |
| | | * |
| | | * @param whsType 类型 1:双深式货架 |
| | | * @param staDescId 路径工作类型 |
| | | * @param sourceStaNo 源站 |
| | | |
| | | * @return locNo 检索到的库位号 |
| | | */ |
| | | @Transactional |
| | |
| | | private LocMast getLocNoStepSingle(LocTypeDto locTypeDto,Integer sourceStaNo) { |
| | | LocMast locMast = null; |
| | | |
| | | StaDesc staDesc = staDescService.selectOne(new EntityWrapper<StaDesc>().eq("type_no", 1).eq("stn_no", sourceStaNo)); |
| | | List<StaDesc> staDescs = staDescService.selectList(new EntityWrapper<StaDesc>().eq("type_no", 1).eq("stn_no", sourceStaNo)); |
| | | |
| | | for (StaDesc staDesc : staDescs) { |
| | | //单品 |
| | | List<LocMast> locMasts = locMastService.selectAreaEmpty(locTypeDto.getLocType1(),staDesc.getCrnNo());//搜索货物 |
| | | |
| | |
| | | if (!Cools.isEmpty(locMast2)) { |
| | | if (locMast2.getLocSts().equals("F") || locMast2.getLocSts().equals("D")){ |
| | | tmp = mast; |
| | | } |
| | | } |
| | | }else { |
| | | if (!Cools.isEmpty(mast)) { |
| | | if (mast.getLocSts().equals("O")){ |
| | | tmp = mast; |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | return locMast; |
| | | } |
| | | } |
| | | return locMast; |
| | | } |
| | | |
| | | // 靠近摆放规则 --- 相同订单号, 同天同规格物料 |
| | | private LocMast getLocNoStep3(Integer staDescId, String matnr, String batch, String grade, LocTypeDto locTypeDto,Integer sourceStaNo) { |
| | | private LocMast getLocNoStep3(Integer staDescId, String matnr, String batch, String grade, LocTypeDto |
| | | locTypeDto, Integer sourceStaNo) { |
| | | LocMast locMast = null; |
| | | StaDesc staDesc = staDescService.selectOne(new EntityWrapper<StaDesc>().eq("type_no", 1).eq("stn_no", sourceStaNo)); |
| | | if (staDescId == 1) { |