|
@@ -603,6 +603,10 @@ public class UserPaymentCoreServiceImpl implements UserPaymentCoreService {
|
|
|
.map(UserOrderDetail::getActualPrice)
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
|
|
|
+ if (couponAmount.compareTo(cashAmount) >0) {
|
|
|
+ couponAmount = cashAmount;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
orderReq.originalPrice(originalPrice.setScale(2, RoundingMode.HALF_UP))
|
|
|
.currentPrice(currentPrice.setScale(2, RoundingMode.HALF_UP))
|