|
|
|
@ -3576,6 +3576,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
List<DistributionDeliverySelfDTO> 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<Distrib
|
|
|
|
|
} else { |
|
|
|
|
StringBuilder driverNames = new StringBuilder(); |
|
|
|
|
StringBuilder vehicleNubs = new StringBuilder(); |
|
|
|
|
if (Func.isEmpty(deliveryListDTO.getMasterDriverName()) || Func.isEmpty(deliveryListDTO.getMasterVehicleNub())) { |
|
|
|
|
if (Func.isEmpty( deliveryListDTO.getMasterDriverName()) || Func.isEmpty(deliveryListDTO.getMasterVehicleNub())) { |
|
|
|
|
//检测无主司机 进行随机赋予主司机
|
|
|
|
|
deliveryListDTO.setMasterDriverName(allocationInfo.get(0).getDriverName()); |
|
|
|
|
deliveryListDTO.setMasterVehicleNub(allocationInfo.get(0).getVehicleNub()); |
|
|
|
@ -3604,7 +3608,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
if (a.getDriverName().equals(deliveryListDTO.getMasterDriverName()) && a.getVehicleNub().equals(deliveryListDTO.getMasterVehicleNub())) { |
|
|
|
|
deliverySelfEntity.setIsMaster(ServiceConstant.IS_MASTER_YES); |
|
|
|
|
driverNames.append(deliverySelfEntity.getDriverName()).append("(主),"); |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
driverNames.append(deliverySelfEntity.getDriverName()).append(","); |
|
|
|
|
} |
|
|
|
@ -4204,6 +4207,25 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
distributionParcelListVO.setScanStatus(LoadingStatusConstant.buluzhuangche.getName()); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
distributionParcelListVO.setLoadingNub(loadscanEntity.getLoadedNub()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(loadscanEntity.getSignforType())) { |
|
|
|
|
switch (loadscanEntity.getSignforType()) { |
|
|
|
|
case 1: |
|
|
|
|
distributionParcelListVO.setSigningType(LoadScanSigningTypeStatusConstant.sijiqianshou.getName()); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
distributionParcelListVO.setSigningType(LoadScanSigningTypeStatusConstant.sijipiliangqianshou.getName()); |
|
|
|
|
break; |
|
|
|
|
case 3: |
|
|
|
|
distributionParcelListVO.setSigningType(LoadScanSigningTypeStatusConstant.wenyuanpiliangqianshou.getName()); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
log.info("loadscanEntity.getSignforType() does not meet matching conditions: {}", loadscanEntity.getSignforType()); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
distributionParcelListVO.setLoadingNub(loadscanEntity.getLoadedNub()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -6237,7 +6259,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
|
|
|
|
|
//进行了一条包件任务的取消,此时就应该对预约、配送任务进行数量的维护
|
|
|
|
|
distributionAsyncService.checkRetentionReservationAndDeliveryInfo(reservationId, deliveryId); |
|
|
|
|
return true; |
|
|
|
|
} else { |
|
|
|
|
//包件未预约 处于异常驳回状态
|
|
|
|
|
//查询异常信息,对异常信息进行清理
|
|
|
|
|