|
|
@ -207,6 +207,7 @@ public class DeliverFinishReportListener implements ReportService { |
|
|
|
if (ObjectUtil.isEmpty(rule)) { |
|
|
|
if (ObjectUtil.isEmpty(rule)) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 计算配送成本
|
|
|
|
if (CollUtil.isNotEmpty(priceList)) { |
|
|
|
if (CollUtil.isNotEmpty(priceList)) { |
|
|
|
Map<Long, ExpenseDispatchPriceCategoryVO> priceMap = priceList.stream().collect(Collectors.toMap(ExpenseDispatchPriceCategoryVO::getCategoryId, v -> v)); |
|
|
|
Map<Long, ExpenseDispatchPriceCategoryVO> priceMap = priceList.stream().collect(Collectors.toMap(ExpenseDispatchPriceCategoryVO::getCategoryId, v -> v)); |
|
|
|
// 车的总运费 用于计算是否触发保底
|
|
|
|
// 车的总运费 用于计算是否触发保底
|
|
|
@ -298,6 +299,7 @@ public class DeliverFinishReportListener implements ReportService { |
|
|
|
// 上楼费成本 = 上楼费单价 * 上楼层数 * 签收件数
|
|
|
|
// 上楼费成本 = 上楼费单价 * 上楼层数 * 签收件数
|
|
|
|
QualityDeliverEntity qualityDeliverEntity1 = valueMap.get(entity.getId()); |
|
|
|
QualityDeliverEntity qualityDeliverEntity1 = valueMap.get(entity.getId()); |
|
|
|
if (ObjectUtil.isNotEmpty(stairsNumber) && StrUtil.isNotEmpty(stairsCharge)) { |
|
|
|
if (ObjectUtil.isNotEmpty(stairsNumber) && StrUtil.isNotEmpty(stairsCharge)) { |
|
|
|
|
|
|
|
qualityDeliverEntity1.setStairsNumber(stairsNumber); |
|
|
|
qualityDeliverEntity1.setApstairsCost(NumberUtil.mul(stairsNumber, new BigDecimal(stairsCharge), signNum)); |
|
|
|
qualityDeliverEntity1.setApstairsCost(NumberUtil.mul(stairsNumber, new BigDecimal(stairsCharge), signNum)); |
|
|
|
} |
|
|
|
} |
|
|
|
// 分货费成本 = 分货费单价 * 签收件数
|
|
|
|
// 分货费成本 = 分货费单价 * 签收件数
|
|
|
@ -306,6 +308,7 @@ public class DeliverFinishReportListener implements ReportService { |
|
|
|
} |
|
|
|
} |
|
|
|
// 平移费成本 = 平移费单价 * 平移米数 * 签收件数
|
|
|
|
// 平移费成本 = 平移费单价 * 平移米数 * 签收件数
|
|
|
|
if (StrUtil.isNotEmpty(translationFee)) { |
|
|
|
if (StrUtil.isNotEmpty(translationFee)) { |
|
|
|
|
|
|
|
qualityDeliverEntity1.setMoveNumber(translationNumber); |
|
|
|
qualityDeliverEntity1.setMoveCost(NumberUtil.mul(translationNumber, new BigDecimal(translationFee), signNum)); |
|
|
|
qualityDeliverEntity1.setMoveCost(NumberUtil.mul(translationNumber, new BigDecimal(translationFee), signNum)); |
|
|
|
} |
|
|
|
} |
|
|
|
// 装卸费成本 = 装卸费单价 * 签收件数
|
|
|
|
// 装卸费成本 = 装卸费单价 * 签收件数
|
|
|
|