提交 3b047212 authored 作者: liuhaiquan's avatar liuhaiquan

Merge remote-tracking branch 'origin/test' into test

...@@ -403,6 +403,7 @@ public class BreakContractSettlementOwnerServiceImpl implements BreakContractSe ...@@ -403,6 +403,7 @@ public class BreakContractSettlementOwnerServiceImpl implements BreakContractSe
@Override @Override
public void saveSettlementOwnerForCancelOrder(BigDecimal transportWeight,BigDecimal validFreightPrice,String orderNo,Integer cancelType) { public void saveSettlementOwnerForCancelOrder(BigDecimal transportWeight,BigDecimal validFreightPrice,String orderNo,Integer cancelType) {
//获取订单配置的违约金方案 //获取订单配置的违约金方案
OwnerQuotationDetailVO quotationDetailVO = quotationService.getQuotationByOrderNo(orderNo).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND); OwnerQuotationDetailVO quotationDetailVO = quotationService.getQuotationByOrderNo(orderNo).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
if(Objects.isNull(quotationDetailVO.getLiquidatedDamagesPlanId())){ if(Objects.isNull(quotationDetailVO.getLiquidatedDamagesPlanId())){
...@@ -426,10 +427,12 @@ public class BreakContractSettlementOwnerServiceImpl implements BreakContractSe ...@@ -426,10 +427,12 @@ public class BreakContractSettlementOwnerServiceImpl implements BreakContractSe
if(Objects.equals(cancelType,CancelOrderEnum.Type.NOT_ARRIVE.getCode())){ if(Objects.equals(cancelType,CancelOrderEnum.Type.NOT_ARRIVE.getCode())){
breakStatusList.add(OrderChildEnum.Status.OWNER_CANCEL.getCode()); breakStatusList.add(OrderChildEnum.Status.OWNER_CANCEL.getCode());
} }
BigDecimal figure ;//总费用 BigDecimal figure ;//总费用
//订单号查询货单 //订单号查询货单
List<OrderGoods> orderGoods = orderGoodsDao.getOrderGoodsListByOrderNo(orderNo); List<OrderGoods> orderGoods = orderGoodsDao.getOrderGoodsListByOrderNo(orderNo);
if(CollectionUtils.isEmpty(orderGoods)){ if(CollectionUtils.isEmpty(orderGoods)){
figure = transportWeight.multiply(validFreightPrice).multiply(orderCancelRule.getBeforeRatio()); figure = transportWeight.multiply(validFreightPrice).multiply(orderCancelRule.getBeforeRatio());
}else{ }else{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论