|
|
|
@ -201,7 +201,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService { |
|
|
|
|
|
|
|
|
|
childOrder.setTotalPrice(childOrder.getGoodsPrice().multiply(new BigDecimal(childOrder.getSaleCount().toString()))); |
|
|
|
|
childOrder.setTotalActualPrice(childOrder.getGoodsActualPrice().multiply(new BigDecimal(childOrder.getSaleCount().toString()))); |
|
|
|
|
childOrder.setTotalDeductionPrice(childOrder.getTotalPrice().subtract(childOrder.getTotalActualPrice())); |
|
|
|
|
childOrder.setTotalDeductionPrice(childOrder.getGoodsPrice().subtract(childOrder.getTotalActualPrice())); |
|
|
|
|
childOrderList.add(childOrder); |
|
|
|
|
|
|
|
|
|
// 是否赠送卡卷
|
|
|
|
@ -237,7 +237,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService { |
|
|
|
|
childOrder.setPraiseStatus(0); |
|
|
|
|
childOrder.setTotalPrice(childOrder.getGoodsPrice().multiply(new BigDecimal(childOrder.getSaleCount().toString()))); |
|
|
|
|
childOrder.setTotalActualPrice(new BigDecimal("0")); |
|
|
|
|
childOrder.setTotalDeductionPrice(childOrder.getTotalPrice().subtract(childOrder.getTotalActualPrice())); |
|
|
|
|
childOrder.setTotalDeductionPrice(new BigDecimal("0")); |
|
|
|
|
childOrder.setCreateTime(new Date()); |
|
|
|
|
childOrderList.add(childOrder); |
|
|
|
|
} |
|
|
|
@ -380,11 +380,10 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.UN_MEMBER_ERROR, "订单未达到"+discountUserRel.getHighDiscount().getDiscountCondition()+"元,无法使用此优惠券"); |
|
|
|
|
} |
|
|
|
|
gasOrder.setDeductionCouponPrice(discountUserRel.getHighDiscount().getDiscountPrice()); |
|
|
|
|
} |
|
|
|
|
else if (discountUserRel.getHighDiscount().getDiscountType() == 2) { |
|
|
|
|
} else if (discountUserRel.getHighDiscount().getDiscountType() == 2) { |
|
|
|
|
gasOrder.setDeductionCouponPrice(discountUserRel.getHighDiscount().getDiscountPrice()); |
|
|
|
|
} |
|
|
|
|
else if (discountUserRel.getHighDiscount().getDiscountType() == 3) { |
|
|
|
|
|
|
|
|
|
} else if (discountUserRel.getHighDiscount().getDiscountType() == 3) { |
|
|
|
|
// 加油金额 * 折扣
|
|
|
|
|
BigDecimal deductionPrice = gasOrder.getGasRefuelPrice() |
|
|
|
|
.multiply(discountUserRel.getHighDiscount().getDiscountPrice()) |
|
|
|
|