|
|
|
@ -590,6 +590,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
public Boolean start(DistributionDeliveryListDTO distributionDeliveryList) { |
|
|
|
|
log.info("开始发车>>>>>>>>>{}", distributionDeliveryList); |
|
|
|
|
//获取关联的客户信息
|
|
|
|
|
try { |
|
|
|
|
if (distributionDeliveryList.getSource() == 1) { |
|
|
|
|
String reservationId = distributionDeliveryList.getReservationId(); |
|
|
|
|
List<Long> reservationIds = Collections.singletonList(Long.valueOf(Arrays.toString(reservationId.split(",")))); |
|
|
|
@ -664,6 +665,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
distributionPackadeliService.saveBatch(DistributionPackadeliEntitys); |
|
|
|
|
//TODO 修改配送表
|
|
|
|
|
return this.update(new UpdateWrapper<DistributionDeliveryListEntity>().lambda().eq(DistributionDeliveryListEntity::getId, distributionDeliveryList.getId()).set(DistributionDeliveryListEntity::getDeliveryStatus, DeliveryStatusConstant.peisongzhong.getValue())); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("发车异常", e); |
|
|
|
|
throw new CustomerException("发车异常"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|