|
|
|
@ -1096,7 +1096,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
deliverySelfInfo = distributionDeliverySelfMapper.getDeliverySelfInfo(deliveryListEntity.getId()); |
|
|
|
|
} else { |
|
|
|
|
DistributionDeliveryTripartiteVO deliveryTripartiteInfo = distributionDeliveryTripartiteMapper.getDeliveryTripartiteInfo(deliveryListEntity.getId()); |
|
|
|
|
BeanUtils.copyProperties(deliverySelfInfo, deliveryTripartiteInfo); |
|
|
|
|
BeanUtils.copyProperties(deliveryTripartiteInfo, deliveryTripartiteInfo); |
|
|
|
|
} |
|
|
|
|
//查询该车次负责司机
|
|
|
|
|
for (DistributionReservationZeroPackageEntity reservationZeroPackageEntity : reservationZeroPackageEntities) { |
|
|
|
@ -4340,7 +4340,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(parcelListEntities)) { |
|
|
|
|
deliveryNub.getAndAdd(parcelListEntities.stream().mapToInt(DistributionParcelListEntity::getQuantity).sum()); |
|
|
|
|
distributionAppDeliveryListVO.setDeliveryNumber(deliveryNub.get()); |
|
|
|
|
distributionAppDeliveryListVO.setDeliveryNumber(distributionAppDeliveryListVO.getDeliveryNumber()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -4364,7 +4364,6 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
AtomicInteger ordCount = new AtomicInteger(); |
|
|
|
|
// List<DistributionAppStockArticleVO> distributionAppStockArticleVOS = baseMapper.selectDistributionAppDeliveryOrderO(distributionAppDeliveryListVO);
|
|
|
|
|
List<DistributionStockArticleVO> deliveryStockArticleInfo = distributionDeliveryListMapper.getDeliveryStockArticleInfo(distributionAppDeliveryListVO.getId()); |
|
|
|
|
// deliveryStockArticleInfo.forEach();
|
|
|
|
|
List<DistributionReservationEntity> distributionReservationEntities = distributionDeliveryListMapper.selectReservationByDeliveryListId(distributionAppDeliveryListVO.getId()); |
|
|
|
|
distributionReservationEntities.forEach(r -> { |
|
|
|
|
List<DistributionReservationStockarticleEntity> reservationStockarticleEntityList = distributionReservationMapper.selectStockArticleByReservationId(r.getId()); |
|
|
|
@ -5969,14 +5968,15 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
}); |
|
|
|
|
if (!distributionSignPrintList.isEmpty()) { |
|
|
|
|
//添加
|
|
|
|
|
this.update(Wrappers.<DistributionSignforEntity>update().lambda() |
|
|
|
|
.eq(DistributionSignforEntity::getReservationId, distributionSignfor.getReservationId()) |
|
|
|
|
.set(DistributionSignforEntity::getDriverSigning, "2") |
|
|
|
|
.set(!Objects.isNull(distributionSignfor.getDriverRemarks()), DistributionSignforEntity::getDriverRemarks, "2") |
|
|
|
|
); |
|
|
|
|
log.info("执行批量保存 {}", distributionSignPrintList); |
|
|
|
|
return iDistributionSignPrintService.saveBatch(distributionSignPrintList); |
|
|
|
|
} |
|
|
|
|
this.update(Wrappers.<DistributionSignforEntity>update().lambda() |
|
|
|
|
.eq(DistributionSignforEntity::getReservationId, distributionSignfor.getReservationId()) |
|
|
|
|
.set(DistributionSignforEntity::getDriverSigning, "2") |
|
|
|
|
.set(!Objects.isNull(distributionSignfor.getDriverRemarks()), DistributionSignforEntity::getDriverRemarks, "2") |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|