Browse Source

feat(all): 车辆车次成本

1 修改车辆车次成本数据异常问题
dev
zhaoqiaobo 1 month ago
parent
commit
d5dd2bc360
  1. 3
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/QualityDeliverServiceImpl.java

3
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/QualityDeliverServiceImpl.java

@ -112,6 +112,7 @@ public class QualityDeliverServiceImpl extends BaseServiceImpl<QualityDeliverMap
BigDecimal fuelCost = BigDecimal.ZERO; BigDecimal fuelCost = BigDecimal.ZERO;
trainDetailEntity.setSettlementStatus("未结算"); trainDetailEntity.setSettlementStatus("未结算");
for (QualityDeliverEntity qualityDeliverEntity : value) { for (QualityDeliverEntity qualityDeliverEntity : value) {
trainDetailEntity.setTotalOrderQuantity(qualityDeliverEntity.getOrderNumber());
trainDetailEntity.setDeliveryVehicle(qualityDeliverEntity.getSignCarNumber()); trainDetailEntity.setDeliveryVehicle(qualityDeliverEntity.getSignCarNumber());
trainDetailEntity.setDistributionModel(qualityDeliverEntity.getSignCarType()); trainDetailEntity.setDistributionModel(qualityDeliverEntity.getSignCarType());
trainDetailEntity.setTrainNumber(qualityDeliverEntity.getSignTrainNumber()); trainDetailEntity.setTrainNumber(qualityDeliverEntity.getSignTrainNumber());
@ -176,6 +177,8 @@ public class QualityDeliverServiceImpl extends BaseServiceImpl<QualityDeliverMap
if (CollUtil.isNotEmpty(orderCodeSet)) { if (CollUtil.isNotEmpty(orderCodeSet)) {
trainDetailEntity.setPlannedTotalQuantity(orderCodeSet.size()); trainDetailEntity.setPlannedTotalQuantity(orderCodeSet.size());
} }
trainDetailEntity.setTotalReceiptCost(Convert.toInt(totalSignNumber));
trainDetailEntity.setTotalLoadedPieces(Convert.toInt(totalLoadNumber));
trainDetailEntity.setDistributionCost(Convert.toDouble(distributionCost)); trainDetailEntity.setDistributionCost(Convert.toDouble(distributionCost));
trainDetailEntity.setStairCarryingFee(Convert.toDouble(apstairsCost)); trainDetailEntity.setStairCarryingFee(Convert.toDouble(apstairsCost));
trainDetailEntity.setGoodsAllocationCost(Convert.toDouble(apartCost)); trainDetailEntity.setGoodsAllocationCost(Convert.toDouble(apartCost));

Loading…
Cancel
Save