|
|
|
@ -77,7 +77,7 @@ public class DisStockOrdercodeRecoServiceImpl extends BaseServiceImpl<DisStockOr
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public DistributionStockListEntity selectStockOrdercodeRecoListByCode(String cargoNumber,Long allocationId) { |
|
|
|
|
public DistributionStockListEntity selectStockOrdercodeRecoListByCode(String cargoNumber,Long allocationId,String mallName) { |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (Func.isEmpty(myCurrentWarehouse)){ |
|
|
|
|
return null; |
|
|
|
@ -89,12 +89,15 @@ public class DisStockOrdercodeRecoServiceImpl extends BaseServiceImpl<DisStockOr
|
|
|
|
|
warehouseUpdownGoodsEntity.setWarehouseId(myCurrentWarehouse.getId()); |
|
|
|
|
warehouseUpdownGoodsEntity.setAssociationType("4"); |
|
|
|
|
warehouseUpdownGoodsEntity.setAssociationValue(cargoNumber); |
|
|
|
|
warehouseUpdownGoodsEntity.setMarketName(mallName); |
|
|
|
|
List<WarehouseUpdownGoodsEntity> locationStockListInformation = warehouseUpdownGoodsClient.getLocationStockListInformation(warehouseUpdownGoodsEntity); |
|
|
|
|
if (Func.isNotEmpty(locationStockListInformation)){ |
|
|
|
|
List<String> IncomingBatchs = locationStockListInformation.stream().map(WarehouseUpdownGoodsEntity::getIncomingBatch).collect(Collectors.toList()); |
|
|
|
|
List<DistributionStockListEntity> distributionStockListEntity = distributionStockListMapper.selectList(Wrappers.<DistributionStockListEntity>query().lambda() |
|
|
|
|
.eq(DistributionStockListEntity::getCargoNumber, cargoNumber) |
|
|
|
|
.eq(DistributionStockListEntity::getMarketName,mallName) |
|
|
|
|
.in(DistributionStockListEntity::getIncomingBatch, IncomingBatchs) |
|
|
|
|
|
|
|
|
|
.orderByAsc(DistributionStockListEntity::getCreateTime) |
|
|
|
|
); |
|
|
|
|
if (Func.isNotEmpty(distributionStockListEntity)){ |
|
|
|
|