|
@@ -1345,7 +1345,7 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
|
|
|
BigDecimal precisionAmount = coupon.subtract(reduce);
|
|
|
for (OmsOrderItem omsOrderItem : orderItemList) {
|
|
|
BigDecimal multiply = omsOrderItem.getProductPrice()
|
|
|
- .multiply(BigDecimal.valueOf(omsOrderItem.getProductQuantity())).subtract(omsOrderItem.getCouponAmount());
|
|
|
+ .multiply(BigDecimal.valueOf(omsOrderItem.getProductQuantity())).subtract(omsOrderItem.getCouponAmount().multiply(BigDecimal.valueOf(omsOrderItem.getProductQuantity())));
|
|
|
if (multiply.compareTo(precisionAmount) >=0) {
|
|
|
omsOrderItem.setPrecisionAmount(precisionAmount);
|
|
|
break;
|