|
|
@@ -103,6 +103,9 @@ public class TransportServiceImpl implements TransportRemoteService {
|
|
|
@Autowired
|
|
|
private KwtWaybillOrderMapper waybillOrderDao;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private KwtWaybillOrderV1Mapper waybillOrderV1Mapper;
|
|
|
+
|
|
|
@Autowired
|
|
|
private KwtLogisticsOrderLineFreightRateMapper lineFreightRateMapper;
|
|
|
|
|
|
@@ -293,11 +296,7 @@ public class TransportServiceImpl implements TransportRemoteService {
|
|
|
// actualAmount = (logisticsOrderDTO.getTotalUnloadAmount() == null ? NumberConstant.ZERO_TWO : logisticsOrderDTO.getTotalUnloadAmount()).multiply(price).subtract(fineValue);
|
|
|
} else if (DictEnum.CHARGING_TYPE_3.getValue().equals(billingMode)) {
|
|
|
// 物流订单运单趟次数量
|
|
|
- Map<String, Object> map = new HashMap<>(NumberConstant.SIXTEEN) {{
|
|
|
- put("upperlOrderId", logisticsOrderDTO.getLOrderId());
|
|
|
- put("passStatus", Global.NUMERICAL_ONE);
|
|
|
- }};
|
|
|
- WaybillCountVo waybillOrderCount = waybillOrderDao.findWaybillOrderCount(map);
|
|
|
+ WaybillCountVo waybillOrderCount = waybillOrderV1Mapper.findCountByLOrderId(Long.parseLong(logisticsOrderDTO.getLOrderId()));
|
|
|
BigDecimal totalComplete = waybillOrderCount == null ? NumberConstant.ZERO_TWO : new BigDecimal(waybillOrderCount.getTotalComplete());
|
|
|
actualAmount = totalComplete.multiply(price);
|
|
|
} else if (DictEnum.CHARGING_TYPE_4.getValue().equals(billingMode)) {
|