Browse Source

feat(all): 车辆车次成本

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

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

@ -84,10 +84,10 @@ public class QualityDeliverServiceImpl extends BaseServiceImpl<QualityDeliverMap
// 按签收车次+签收车次分组封装为map
Map<String, List<QualityDeliverEntity>> collect = new HashMap<>();
for (QualityDeliverEntity entity : entities) {
if (!collect.containsKey(entity.getSignCarNumber() + entity.getSignTrainNumber())) {
collect.put(entity.getSignCarNumber() + entity.getSignTrainNumber(), CollUtil.newArrayList(entity));
if (!collect.containsKey(entity.getSignCarNumber() + entity.getPlanTrainNumber())) {
collect.put(entity.getSignCarNumber() + entity.getPlanTrainNumber(), CollUtil.newArrayList(entity));
} else {
collect.get(entity.getSignCarNumber() + entity.getSignTrainNumber()).add(entity);
collect.get(entity.getSignCarNumber() + entity.getPlanTrainNumber()).add(entity);
}
}
@ -115,7 +115,7 @@ public class QualityDeliverServiceImpl extends BaseServiceImpl<QualityDeliverMap
trainDetailEntity.setTotalOrderQuantity(qualityDeliverEntity.getOrderNumber());
trainDetailEntity.setDeliveryVehicle(qualityDeliverEntity.getSignCarNumber());
trainDetailEntity.setDistributionModel(qualityDeliverEntity.getSignCarType());
trainDetailEntity.setTrainNumber(qualityDeliverEntity.getSignTrainNumber());
trainDetailEntity.setTrainNumber(qualityDeliverEntity.getPlanTrainNumber());
// 签收车次号 = 配送任务车次号 取配送时间
Date deliveryTime = qualityDeliverEntity.getDeliveryTime();
if (ObjectUtil.isNotEmpty(deliveryTime)) {

Loading…
Cancel
Save