Commit e0969ea0 by 姜海波

Merge remote-tracking branch 'remotes/origin/feature-2020/4/16-1.9.20-满减配送费记录修改-海波'

parents 731cade8 b3ea6268
...@@ -300,6 +300,7 @@ public class OrderSdkAdapter { ...@@ -300,6 +300,7 @@ public class OrderSdkAdapter {
orderCostCreateReq.setCostName(accountRequest.getName()); orderCostCreateReq.setCostName(accountRequest.getName());
//新订单服务 1=包装费,2=运费,3=餐盒单价,4=餐盒数量 //新订单服务 1=包装费,2=运费,3=餐盒单价,4=餐盒数量
orderCostCreateReq.setCostType(getCostType(accountRequest.getAccountType())); orderCostCreateReq.setCostType(getCostType(accountRequest.getAccountType()));
orderCostCreateReq.setActualCostAmount(accountRequest.getActualPrice()!=null?accountRequest.getActualPrice():accountRequest.getPrice());
orderCostCreateReq.setCostAmount(accountRequest.getPrice()); orderCostCreateReq.setCostAmount(accountRequest.getPrice());
originalAmount += accountRequest.getPrice(); originalAmount += accountRequest.getPrice();
orderCostCreateReq.setProductSeq(accountRequest.getSequence()); orderCostCreateReq.setProductSeq(accountRequest.getSequence());
......
...@@ -43,4 +43,9 @@ public class CreateOrderAccountRequest extends BaseConfig { ...@@ -43,4 +43,9 @@ public class CreateOrderAccountRequest extends BaseConfig {
private String productId; private String productId;
private Integer discountQty; private Integer discountQty;
/**
* 真实费用 满减配送费 计算实际产生的配送费用
*/
private Long actualPrice;
} }
...@@ -180,6 +180,7 @@ public class OrderAdapter { ...@@ -180,6 +180,7 @@ public class OrderAdapter {
.price(deliveryAmount) .price(deliveryAmount)
.accountType(getQueryOrderAccountType(OldOrderAccountType.getByCode(OrderAccountType.DELIVERY_AMOUNT.getCode()))) .accountType(getQueryOrderAccountType(OldOrderAccountType.getByCode(OrderAccountType.DELIVERY_AMOUNT.getCode())))
.sequence(orderAccountIndex++) .sequence(orderAccountIndex++)
.actualPrice(discountDeliveryAmount)
.build(); .build();
orderAccountDtos.add(createOrderAccountDto); orderAccountDtos.add(createOrderAccountDto);
} }
...@@ -645,6 +646,7 @@ public class OrderAdapter { ...@@ -645,6 +646,7 @@ public class OrderAdapter {
.price(deliveryAmount) .price(deliveryAmount)
.accountType(QueryOrderAccountType.DELIVERY_AMOUNT) .accountType(QueryOrderAccountType.DELIVERY_AMOUNT)
.sequence(orderAccountIndex++) .sequence(orderAccountIndex++)
.actualPrice(discountDeliveryAmount)
.build(); .build();
orderAccountDtos.add(createOrderAccountDto); orderAccountDtos.add(createOrderAccountDto);
} }
......
...@@ -38,4 +38,7 @@ public class OrderCostCreateReq { ...@@ -38,4 +38,7 @@ public class OrderCostCreateReq {
//备注 //备注
private String note; private String note;
private Long actualCostAmount;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment