...
|
...
|
@@ -2,6 +2,7 @@ package com.yohoufo.order.service.support; |
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yohobuy.ufo.model.order.constants.OrderDetailDesc;
|
|
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
|
|
import com.yohoufo.common.helper.ImageUrlAssist;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohobuy.ufo.model.order.constants.OrderConstant;
|
...
|
...
|
@@ -13,6 +14,7 @@ import com.yohoufo.order.model.response.PaymentResponse; |
|
|
import com.yohoufo.order.model.response.PromotionFormula;
|
|
|
import com.yohoufo.order.model.response.RecommendedCouponInfo;
|
|
|
import com.yohoufo.order.utils.MathUtils;
|
|
|
import com.yohoufo.order.utils.SellerGoodsHelper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
...
|
...
|
@@ -123,7 +125,7 @@ public class ShoppingSupport { |
|
|
* @param damagedPrice
|
|
|
* @return
|
|
|
*/
|
|
|
public String getDamagesDesc(BigDecimal damagedPrice){
|
|
|
public String getDamagesDesc(BigDecimal damagedPrice, SkupType skupType){
|
|
|
if (damagedPrice == null){
|
|
|
return "";
|
|
|
}
|
...
|
...
|
@@ -135,8 +137,14 @@ public class ShoppingSupport { |
|
|
具体退换货规则详见《买家须知》
|
|
|
|
|
|
*/
|
|
|
String damagesDesc =
|
|
|
new String(OrderDetailDesc.PaymentTips.DAMAGES_DESC.toCharArray());
|
|
|
String damagesDesc;
|
|
|
if (SellerGoodsHelper.isImperfectGoods(skupType)){
|
|
|
damagesDesc =
|
|
|
new String(OrderDetailDesc.PaymentTips.DAMAGES_DESC_OF_IMPERFECT.toCharArray());
|
|
|
}else {
|
|
|
damagesDesc =
|
|
|
new String(OrderDetailDesc.PaymentTips.DAMAGES_DESC.toCharArray());
|
|
|
}
|
|
|
|
|
|
return String.format(damagesDesc, damagedPrice.toPlainString());
|
|
|
|
...
|
...
|
|