|
|
@ -340,10 +340,36 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
distributionDeliveryListVO.setReservationList(customList); |
|
|
|
distributionDeliveryListVO.setReservationList(customList); |
|
|
|
//查询司机信息
|
|
|
|
//查询司机信息
|
|
|
|
if (Objects.equals(distributionDeliveryListVO.getKind(), "1")) { |
|
|
|
if (Objects.equals(distributionDeliveryListVO.getKind(), "1")) { |
|
|
|
DistributionDeliverySelfEntity deliverySelfServiceOne = distributionDeliverySelfService.getOne(Wrappers.<DistributionDeliverySelfEntity>query().lambda().eq(DistributionDeliverySelfEntity::getDeliveryId, distributionDeliveryListVO.getId()).eq(DistributionDeliverySelfEntity::getIsMaster, 2)); |
|
|
|
List<DistributionDeliverySelfEntity> deliverySelfServices = distributionDeliverySelfService.list(Wrappers.<DistributionDeliverySelfEntity>query().lambda().eq(DistributionDeliverySelfEntity::getDeliveryId, distributionDeliveryListVO.getId()).eq(DistributionDeliverySelfEntity::getIsMaster, 2)); |
|
|
|
distributionDeliveryListVO.setDriverName(deliverySelfServiceOne.getDriverName()); |
|
|
|
|
|
|
|
distributionDeliveryListVO.setDriverPhone(deliverySelfServiceOne.getDriverPhone()); |
|
|
|
if(!deliverySelfServices.isEmpty()){ |
|
|
|
distributionDeliveryListVO.setVehicleName(deliverySelfServiceOne.getVehicleNub()); |
|
|
|
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 { |
|
|
|
} else { |
|
|
|
DistributionDeliveryTripartiteEntity deliveryTripartiteEntity = distributionDeliveryTripartiteService.getOne(Wrappers.<DistributionDeliveryTripartiteEntity>query().lambda().eq(DistributionDeliveryTripartiteEntity::getDeliveryId, distributionDeliveryListVO.getId())); |
|
|
|
DistributionDeliveryTripartiteEntity deliveryTripartiteEntity = distributionDeliveryTripartiteService.getOne(Wrappers.<DistributionDeliveryTripartiteEntity>query().lambda().eq(DistributionDeliveryTripartiteEntity::getDeliveryId, distributionDeliveryListVO.getId())); |
|
|
|
distributionDeliveryListVO.setDriverName(deliveryTripartiteEntity.getDriverName()); |
|
|
|
distributionDeliveryListVO.setDriverName(deliveryTripartiteEntity.getDriverName()); |
|
|
|