diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml index 74d3f9716..1689d8f3d 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml @@ -174,7 +174,7 @@ and ldpl.stock_article_id like concat('%',#{param.stockArticleId},'%') - and ldpl.order_code like concat('%',#{param.orderCode},'%') + and ldpl.order_code like concat(#{param.orderCode},'%') and ldpl.service_number like concat('%',#{param.serviceNumber},'%') diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java index f3b6496df..c9992cf40 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java @@ -147,10 +147,18 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl selectDistributionParcelListPage(IPage page, DistributionParcelListVO distributionParcelList) { - List myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse(); - List collect = myWatchWarehouse.stream() - .map(BasicdataWarehouseEntity::getId) - .collect(Collectors.toList()); + BasicdataWarehouseEntity myWatchWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); + List collect = new ArrayList<>(); + if(ObjectUtils.isNull(myWatchWarehouse)){ + List myWatchWarehouse1 = basicdataWarehouseClient.getMyWatchWarehouse(); + myWatchWarehouse1.forEach(t->{ + collect.add(t.getId()); + }); + + }else{ + collect.add(myWatchWarehouse.getId()); + } + distributionParcelList.setWarehouseIdList(collect); List distributionParcelListEntities = baseMapper.selectDistributionParcelListPage(page, distributionParcelList); return page.setRecords(distributionParcelListEntities); diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java index 12531b4d9..aa1164d68 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseWaybillServiceImpl.java @@ -306,7 +306,8 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl