|
|
@@ -393,14 +393,15 @@ public class KwtTransportCommonService {
|
|
|
} else if (DictEnum.CHARGING_TYPE_2.getValue().equals(logisticsOrder.getBillingMode())) {
|
|
|
orderDetailVO.setOrderAmount(unloadAmount.multiply(price).subtract(fineValue));
|
|
|
} else if (DictEnum.CHARGING_TYPE_3.getValue().equals(logisticsOrder.getBillingMode())) {
|
|
|
- // 物流订单运单趟次数量
|
|
|
+ /*// 物流订单运单趟次数量
|
|
|
Map<String, Object> map = new HashMap<>(NumberConstant.SIXTEEN) {{
|
|
|
put("upperlOrderId", logisticsOrder.getId());
|
|
|
put("passStatus", Global.NUMERICAL_ONE);
|
|
|
}};
|
|
|
WaybillCountVo waybillOrderCount = kwtWaybillOrderV1Mapper.findWaybillOrderCount(map);
|
|
|
- int count = waybillOrderCount == null ? NumberConstant.ZERO : waybillOrderCount.getTotalComplete();
|
|
|
- orderDetailVO.setOrderAmount(new BigDecimal(count).multiply(price).subtract(fineValue));
|
|
|
+ int count = waybillOrderCount == null ? NumberConstant.ZERO : waybillOrderCount.getTotalComplete();*/
|
|
|
+ BigDecimal totalComplete = BigDecimal.valueOf(logisticsOrder.getTotalTake());
|
|
|
+ orderDetailVO.setOrderAmount(totalComplete.multiply(price).subtract(fineValue));
|
|
|
}
|
|
|
} else {
|
|
|
orderDetailVO.setOrderAmount(NumberUtils.parseBigDecimal(logisticsOrder.getAmount()).multiply(NumberUtils.parseBigDecimal(logisticsOrder.getPrice())));
|