|
|
|
@ -1841,11 +1841,16 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
|
|
|
|
|
split, List<DistributionStockArticleEntity> distributionStockArticleEntities, String warehouseName, Long |
|
|
|
|
reservationId, String deliveryCode, Long warehouseId) { |
|
|
|
|
Map<String, List<MtReceiveContentDTO>> packageList = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
log.info(">>>> 构建复核签收订单的品牌信息0 {}", distributionStockArticleEntities); |
|
|
|
|
|
|
|
|
|
Map<String, List<DistributionStockArticleEntity>> orderMap = distributionStockArticleEntities.stream().collect(Collectors.groupingBy(DistributionStockArticleEntity::getBrand)); |
|
|
|
|
for (String s : split) { |
|
|
|
|
orderMap.forEach((k, v) -> { |
|
|
|
|
log.info(">>>> 构建复核签收订单的品牌信息 {}", k); |
|
|
|
|
if (k.equals(s)) { |
|
|
|
|
log.info(">>>> 构建复核签收订单的品牌信息1 {}", k); |
|
|
|
|
log.info(">>>> 构建复核签收订单的品牌信息2 {}", s); |
|
|
|
|
log.info(">>>> 构建复核签收订单的品牌信息3 {}", v); |
|
|
|
|
if (k.trim().equals(s.trim())) { |
|
|
|
|
List<MtReceiveContentDTO> mtReceiveContentDTOS = new ArrayList<>(); |
|
|
|
|
for (DistributionStockArticleEntity distributionStockArticleEntity : v) { |
|
|
|
|
List<DistributionParcelListEntity> distributionParcelListEntities = distributionReservationMapper.selectPackageByReservationAndStockArticle(reservationId, distributionStockArticleEntity.getId(), warehouseId); |
|
|
|
|