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/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index de79c42cc..0463bbd35 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -340,10 +340,36 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImplquery().lambda().eq(DistributionDeliverySelfEntity::getDeliveryId, distributionDeliveryListVO.getId()).eq(DistributionDeliverySelfEntity::getIsMaster, 2)); - distributionDeliveryListVO.setDriverName(deliverySelfServiceOne.getDriverName()); - distributionDeliveryListVO.setDriverPhone(deliverySelfServiceOne.getDriverPhone()); - distributionDeliveryListVO.setVehicleName(deliverySelfServiceOne.getVehicleNub()); + List deliverySelfServices = distributionDeliverySelfService.list(Wrappers.query().lambda().eq(DistributionDeliverySelfEntity::getDeliveryId, distributionDeliveryListVO.getId()).eq(DistributionDeliverySelfEntity::getIsMaster, 2)); + + if(!deliverySelfServices.isEmpty()){ + StringBuffer sb1 = new StringBuffer(); + StringBuffer sb2 = new StringBuffer(); + StringBuffer sb3 = new StringBuffer(); + deliverySelfServices.forEach(t->{ + if(!sb1.toString().isEmpty()){ + sb1.append("/"); + } + sb1.append(t.getDriverName()); + + if(!sb2.toString().isEmpty()){ + sb2.append("/"); + } + sb2.append(t.getDriverPhone()); + + + if(!sb3.toString().isEmpty()){ + sb3.append("/"); + } + sb3.append(t.getVehicleNub()); + }); + + distributionDeliveryListVO.setDriverName(sb1.toString()); + distributionDeliveryListVO.setDriverPhone(sb2.toString()); + distributionDeliveryListVO.setVehicleName(sb3.toString()); + } + + } else { DistributionDeliveryTripartiteEntity deliveryTripartiteEntity = distributionDeliveryTripartiteService.getOne(Wrappers.query().lambda().eq(DistributionDeliveryTripartiteEntity::getDeliveryId, distributionDeliveryListVO.getId())); distributionDeliveryListVO.setDriverName(deliveryTripartiteEntity.getDriverName()); 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