优惠券数量问题
This commit is contained in:
@@ -435,9 +435,9 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||||||
totalAmount.setPrice(totalAmount.getPrice().add(orderDetail.getPayAmount()));
|
totalAmount.setPrice(totalAmount.getPrice().add(orderDetail.getPayAmount()));
|
||||||
resultList.add(orderDetail);
|
resultList.add(orderDetail);
|
||||||
}
|
}
|
||||||
if (couponNum.compareTo(BigDecimal.ZERO) != 0) {
|
// if (couponNum.compareTo(BigDecimal.ZERO) != 0) {
|
||||||
throw new ValidateException("生成支付订单失败,优惠券数量不正确");
|
// throw new ValidateException("生成支付订单失败,优惠券数量不正确");
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
orderDetails = resultList;
|
orderDetails = resultList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user