提交代码

master
胡锐 5 months ago committed by yuanye
parent 9d45070269
commit 5df49c5b8b
  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());
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()) {

Loading…
Cancel
Save