|
@@ -205,8 +205,8 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
|
|
|
if(data != null) {
|
|
|
couponAmount = data.getDiscountedPrices();
|
|
|
}
|
|
|
- if (couponAmount.compareTo(orderParam.getOrderAmount()) > 0) {
|
|
|
- couponAmount = orderParam.getOrderAmount();
|
|
|
+ if (couponAmount.compareTo(totalAmount) > 0) {
|
|
|
+ couponAmount = totalAmount;
|
|
|
}
|
|
|
handleCouponAmount(orderItemList, couponAmount);
|
|
|
}
|