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 c8cbcbba2..48399f9e3 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 @@ -3576,6 +3576,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl allocationInfo = deliveryListDTO.getAllocationInfo(); + if (Strings.isBlank(deliveryListDTO.getMasterDriverName())){ + //无主司机信息 进行主司机默认赋予 + deliveryListDTO.setMasterDriverName(allocationInfo.get(0).getDriverName()); + } if (Func.isEmpty(allocationInfo)) { //这里就表示是三方配送 DistributionDeliveryTripartiteDTO tripartite = deliveryListDTO.getTripartite(); @@ -3593,7 +3597,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl allocationInfo = allocationDTO.getAllocationInfo(); + if (Strings.isBlank(allocationDTO.getMasterDriverName())){ + //无主司机信息 进行主司机默认赋予 + allocationDTO.setMasterDriverName(allocationInfo.get(0).getDriverName()); + } allocationInfo.forEach(a -> { DistributionDeliverySelfEntity distributionDeliverySelfEntity = Func.copy(a, DistributionDeliverySelfEntity.class); //设置车辆编号