|
@@ -55,7 +55,7 @@ public class OrderUtil {
|
|
shopOrder.setTotalAmount(shopOrder.getTotalAmount() + o.getTotalFee());
|
|
shopOrder.setTotalAmount(shopOrder.getTotalAmount() + o.getTotalFee());
|
|
shopOrder.setNeedPayAmount(shopOrder.getNeedPayAmount() + o.getShouldPayFee());
|
|
shopOrder.setNeedPayAmount(shopOrder.getNeedPayAmount() + o.getShouldPayFee());
|
|
shopOrder.setTotalAddedValueTax(shopOrder.getTotalAddedValueTax() + o.getTotalAddedValueTax()); //税费
|
|
shopOrder.setTotalAddedValueTax(shopOrder.getTotalAddedValueTax() + o.getTotalAddedValueTax()); //税费
|
|
- shopOrder.setBrokerage(shopOrder.getBrokerage() + o.getCmFee()); //佣金 = 应付采美
|
|
|
|
|
|
+ shopOrder.setBrokerage(shopOrder.getBrokerage() + o.getCmFee() + o.getTotalAddedValueTax() - o.getShouldPayTotalTax()); //佣金 = 应付采美
|
|
// 计算超级会员优惠
|
|
// 计算超级会员优惠
|
|
if (null != o.getSvipPriceFlag() && 1 == o.getSvipPriceFlag()) {
|
|
if (null != o.getSvipPriceFlag() && 1 == o.getSvipPriceFlag()) {
|
|
BigDecimal productTotalReduction = MathUtil.mul(o.getSvipReduction(), o.getNum(), 2);
|
|
BigDecimal productTotalReduction = MathUtil.mul(o.getSvipReduction(), o.getNum(), 2);
|
|
@@ -83,7 +83,7 @@ public class OrderUtil {
|
|
shopOrder.setOrderSubmitType(4);
|
|
shopOrder.setOrderSubmitType(4);
|
|
shopOrder.setFee(null);
|
|
shopOrder.setFee(null);
|
|
// 赠品单独列出了
|
|
// 赠品单独列出了
|
|
- shopOrder.setPresentNum(0);
|
|
|
|
|
|
+ shopOrder.setPresentNum(o.getPresentNum());
|
|
shopOrder.setProductAmount(o.getTotalAmount());
|
|
shopOrder.setProductAmount(o.getTotalAmount());
|
|
shopOrder.setDiscountFee(o.getDiscountFee());
|
|
shopOrder.setDiscountFee(o.getDiscountFee());
|
|
shopOrder.setTotalAmount(o.getTotalFee());
|
|
shopOrder.setTotalAmount(o.getTotalFee());
|
|
@@ -92,7 +92,7 @@ public class OrderUtil {
|
|
List<NewOrderProduct> newOrderProducts = new ArrayList<>(); // 实例化订单商品集合
|
|
List<NewOrderProduct> newOrderProducts = new ArrayList<>(); // 实例化订单商品集合
|
|
newOrderProducts.add(o);
|
|
newOrderProducts.add(o);
|
|
shopOrder.setNewOrderProducts(newOrderProducts);
|
|
shopOrder.setNewOrderProducts(newOrderProducts);
|
|
- shopOrder.setBrokerage(o.getCmFee());
|
|
|
|
|
|
+ shopOrder.setBrokerage(o.getCmFee() + o.getTotalAddedValueTax() - o.getShouldPayTotalTax());
|
|
|
|
|
|
shopOrder.setDiscountAmount((o.getPrice() - o.getDiscountPrice()) * o.getNum());
|
|
shopOrder.setDiscountAmount((o.getPrice() - o.getDiscountPrice()) * o.getNum());
|
|
shopOrder.setTotalAmount(o.getTotalFee());
|
|
shopOrder.setTotalAmount(o.getTotalFee());
|