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