Authored by chenchao

append china size unit

... ... @@ -24,6 +24,7 @@ import com.yohoufo.order.convert.ProductConvertor;
import com.yohoufo.order.model.dto.SellerOrderComputeResult;
import com.yohoufo.order.service.impl.AbsOrderViewService;
import com.yohoufo.order.utils.LoggerUtils;
import com.yohoufo.order.utils.SellerGoodsHelper;
import lombok.Builder;
import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
... ... @@ -206,7 +207,7 @@ public class SellerDepositOrderListService extends AbsOrderViewService {
GoodsVo goods = GoodsVo.builder()
.productName(paog.getProductName())
.imgUrl(ImageUrlAssist.getProductFullPicUrlWithDefaultSetting(paog.getImageUrl()))
.sizeName(paos.getSizeName())
.sizeName(SellerGoodsHelper.appendSizeCNUnit(paos.getSizeName()))
.build();
DepositOrderInStorePrdListResp resp = DepositOrderInStorePrdListResp.builder()
.earnestMoney(BigDecimalHelper.halfUp(pao.getAmount()).toPlainString())
... ... @@ -308,7 +309,7 @@ public class SellerDepositOrderListService extends AbsOrderViewService {
}
Integer storageNum;
BigDecimal emOfSku = socr.getEarnestMoney().getEarnestMoney().multiply(new BigDecimal(storageNum=aos.getNum()));
GoodsVo goodsVo = GoodsVo.builder().sizeName(aos.getSizeName()).num(storageNum)
GoodsVo goodsVo = GoodsVo.builder().sizeName(SellerGoodsHelper.appendSizeCNUnit(aos.getSizeName())).num(storageNum)
.earnestMoney(BigDecimalHelper.formatNumber(emOfSku, BigDecimalHelper.FORMAT_TWOBITAFTERPOINT)).build();
goodsList.add(goodsVo);
}
... ...
... ... @@ -4,6 +4,7 @@ import com.yohobuy.ufo.model.order.common.OrderAttributes;
import com.yohobuy.ufo.model.order.constants.RegionEnum;
import com.yohobuy.ufo.model.order.constants.SkupType;
import com.yohoufo.order.service.seller.support.SkupTypeCodeSupport;
import org.apache.commons.lang3.StringUtils;
import java.math.BigDecimal;
import java.util.HashMap;
... ... @@ -104,4 +105,10 @@ public final class SellerGoodsHelper {
}
public static String appendSizeCNUnit(String sizeName){
if (StringUtils.isBlank(sizeName)){
return sizeName;
}
return new StringBuilder(sizeName).append("码").toString();
}
}
... ...