...
|
...
|
@@ -6,7 +6,6 @@ import com.yohoufo.dal.order.model.SellerOrderGoods; |
|
|
import com.yohobuy.ufo.model.order.constants.OrderConstant;
|
|
|
import com.yohoufo.order.charge.model.ChargeResult;
|
|
|
import com.yohoufo.order.charge.model.CouponPayResult;
|
|
|
import com.yohoufo.order.model.response.CouponInfo;
|
|
|
import com.yohoufo.order.model.response.GoodsInfo;
|
|
|
import com.yohoufo.order.model.response.PaymentResponse;
|
|
|
import com.yohoufo.order.model.response.PromotionFormula;
|
...
|
...
|
@@ -15,7 +14,6 @@ import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Service
|
...
|
...
|
@@ -129,18 +127,4 @@ public class ShoppingSupport { |
|
|
return damagesDesc.toString();
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 使用的优惠券信息
|
|
|
* @param chargeResult
|
|
|
* @return
|
|
|
*/
|
|
|
public CouponInfo getCouponInfo(ChargeResult chargeResult) {
|
|
|
CouponPayResult couponPayResult = chargeResult.getCouponPayResult();
|
|
|
return CouponInfo.builder().couponCode(couponPayResult.getCouponCode())
|
|
|
.couponTitle(couponPayResult.getCouponTitle())
|
|
|
.couponAmountStr(MathUtils.formatCurrencyStr(couponPayResult.getCouponAmount()))
|
|
|
.couponCount(couponPayResult.getCouponCount())
|
|
|
.build();
|
|
|
}
|
|
|
} |
...
|
...
|
|