|
|
|
@ -450,7 +450,7 @@ public class StatisticsOrderInfoServiceImpl extends BaseServiceImpl<StatisticsOr
|
|
|
|
|
// 查询包件数据
|
|
|
|
|
List<StatisticsDistributionPackageEntity> distributionPackageEntities = distributionPackageService.list(new QueryWrapper<StatisticsDistributionPackageEntity>().lambda().eq(StatisticsDistributionPackageEntity::getOrderInfoId, id)); |
|
|
|
|
// 校验是否全部配送完成
|
|
|
|
|
if (distributionPackageEntities.stream().anyMatch(distributionPackageEntity -> distributionPackageEntity.getIsSign() == 0)) { |
|
|
|
|
if (CollUtil.isEmpty(distributionPackageEntities) || distributionPackageEntities.stream().anyMatch(distributionPackageEntity -> distributionPackageEntity.getIsSign() == 0)) { |
|
|
|
|
log.warn("#############calculateRealCost: 订单未全部配送完成,无法计算。"); |
|
|
|
|
throw new CustomerException(405, "订单未全部配送完成,无法计算。"); |
|
|
|
|
} |
|
|
|
|