|
|
|
@ -996,14 +996,14 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockupSelfVO.getConsignee())){ |
|
|
|
|
distributionStockupSelfVO.setConsignee(i.getConsignee()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockupSelfVO.getConsignee()) && !distributionStockupSelfVO.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockupSelfVO.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
distributionStockupSelfVO.setConsignee(distributionStockupSelfVO.getConsignee()+","+i.getConsignee()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(ObjectUtils.isNull(distributionStockupSelfVO.getTrays())){ |
|
|
|
|
distributionStockupSelfVO.setTrays(i.getTrays()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockupSelfVO.getTrays()) && !distributionStockupSelfVO.getTrays().equals(i.getTrays())){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockupSelfVO.getTrays().equals(i.getTrays())){ |
|
|
|
|
distributionStockupSelfVO.setTrays(distributionStockupSelfVO.getTrays()+","+i.getTrays()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1018,14 +1018,14 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockupSelfVO.getConsignee())){ |
|
|
|
|
distributionStockupSelfVO.setConsignee(i.getConsignee()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockupSelfVO.getConsignee()) && !distributionStockupSelfVO.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockupSelfVO.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
distributionStockupSelfVO.setConsignee(distributionStockupSelfVO.getConsignee()+","+i.getConsignee()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(ObjectUtils.isNull(distributionStockupSelfVO.getTrays())){ |
|
|
|
|
distributionStockupSelfVO.setTrays(i.getTrays()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockupSelfVO.getTrays()) && !distributionStockupSelfVO.getTrays().equals(i.getTrays())){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockupSelfVO.getTrays().equals(i.getTrays())){ |
|
|
|
|
distributionStockupSelfVO.setTrays(distributionStockupSelfVO.getTrays()+","+i.getTrays()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1128,22 +1128,24 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
AtomicReference<Integer> j = new AtomicReference<>(0); |
|
|
|
|
AtomicReference<Integer> y = new AtomicReference<>(0); |
|
|
|
|
distributionStockupSelfVOS.forEach(i -> { |
|
|
|
|
j.updateAndGet(v -> v + i.getPlanNum()); |
|
|
|
|
y.updateAndGet(v -> v + i.getScanNum()); |
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getConsignee())){ |
|
|
|
|
distributionStockup.setConsignee(i.getConsignee()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockup.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
String s = distributionStockup.getConsignee() + i.getConsignee(); |
|
|
|
|
distributionStockup.setConsignee(s); |
|
|
|
|
if(ObjectUtils.isNull(i.getAllocationId())){ |
|
|
|
|
j.updateAndGet(v -> v + 1); |
|
|
|
|
y.updateAndGet(v -> v + i.getScanNum()); |
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getConsignee())){ |
|
|
|
|
distributionStockup.setConsignee(i.getConsignee()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockup.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
String s = distributionStockup.getConsignee() + i.getConsignee(); |
|
|
|
|
distributionStockup.setConsignee(s); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getTrays())){ |
|
|
|
|
distributionStockup.setTrays(i.getTrays()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockup.getTrays().equals(i.getTrays())){ |
|
|
|
|
String s = distributionStockup.getTrays() + i.getTrays(); |
|
|
|
|
distributionStockup.setTrays(s); |
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getTrays())){ |
|
|
|
|
distributionStockup.setTrays(i.getTrays()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockup.getTrays().equals(i.getTrays())){ |
|
|
|
|
String s = distributionStockup.getTrays() + i.getTrays(); |
|
|
|
|
distributionStockup.setTrays(s); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -1165,7 +1167,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(Objects.isNull(stockupDTO.getAllocationId())){ |
|
|
|
|
while (iterator.hasNext()){ |
|
|
|
|
PackageStockupVO next = iterator.next(); |
|
|
|
|
if(ObjectUtils.isNotNull(next.getPositionCode()) ){ |
|
|
|
|
if(ObjectUtils.isNotNull(next.getAllocationId()) ){ |
|
|
|
|
iterator.remove(); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
@ -1451,7 +1453,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
parcelList.setOrderPackageStockupStatus(OrderPackageStockupStatusConstant.yibeihu.getValue()); |
|
|
|
|
distributionParcelListService.updateById(parcelList); |
|
|
|
|
//货位下架
|
|
|
|
|
warehouseUpdownTypeClient.downPackage(i.getPacketBarCode()); |
|
|
|
|
// warehouseUpdownTypeClient.downPackage(i.getPacketBarCode());
|
|
|
|
|
//判断备货任务是否完成
|
|
|
|
|
if(one.getStockUpType().equals("3")){ |
|
|
|
|
distributionAsyncService.stockupSelfUpdateState(stockupDTO); |
|
|
|
@ -1475,7 +1477,11 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
distributionStock.setStockupId(stockupDTO.getStockupId()); |
|
|
|
|
distributionStock.setStockArticle(i.getStockArticleId()); |
|
|
|
|
// distributionStock.setGoodsAllocation(i.getGoodsAllocation());//货位信息
|
|
|
|
|
|
|
|
|
|
//备货区
|
|
|
|
|
DistributionStockupEntity distributionStockupEntity = distributionStockupService.selectById(stockupDTO.getStockupId()); |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockupEntity)){ |
|
|
|
|
distributionStock.setStockupArea(distributionStockupEntity.getStockupArea()); |
|
|
|
|
} |
|
|
|
|
distributionStock.setParcelListId(i.getParcelListId()); |
|
|
|
|
distributionStock.setOrderSelfNumbering(i.getOrderCode()); |
|
|
|
|
distributionStock.setType(1); |
|
|
|
|