|
|
|
@ -196,7 +196,7 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
|
/************ 交易优惠 **************/ |
|
|
|
|
|
|
|
|
|
BigDecimal payRealPrice = totalPrice.subtract(order.getDeduction().getTotalDeductionPrice()); |
|
|
|
|
order.setPayRealPrice(payRealPrice.compareTo(new BigDecimal("0")) < 0 ?payRealPrice:new BigDecimal("0")); |
|
|
|
|
order.setPayRealPrice(payRealPrice.compareTo(new BigDecimal("0")) > 0 ? payRealPrice : new BigDecimal("0")); |
|
|
|
|
order.setOrderStatus(order.getPayRealPrice().compareTo(new BigDecimal("0")) == 0?OrderStatusEnum.status2.getCode():OrderStatusEnum.status1.getCode()); |
|
|
|
|
// 订单入库前处理
|
|
|
|
|
for (OrderChildModel childOrder : order.getOrderChildList()) { |
|
|
|
|