提交代码

dev
胡锐 5 months ago
parent 7750919fcb
commit bc3420a59f
  1. 2
      service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java

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

Loading…
Cancel
Save