...
|
...
|
@@ -9,6 +9,7 @@ import com.yohoufo.common.helper.ImageUrlAssist; |
|
|
import com.yohoufo.common.utils.BigDecimalHelper;
|
|
|
import com.yohoufo.dal.order.model.AppraiseOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.AppraiseOrderStorage;
|
|
|
import com.yohoufo.order.utils.SellerGoodsHelper;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Objects;
|
...
|
...
|
@@ -24,7 +25,7 @@ public final class ProductConvertor { |
|
|
BigDecimal totalEM = singleEM.multiply(new BigDecimal(num));
|
|
|
//
|
|
|
return GoodsVo.builder().storageId(storageId)
|
|
|
.sizeName(storageDataResp.getSize().getSizeName())
|
|
|
.sizeName(SellerGoodsHelper.appendSizeCNUnit(storageDataResp.getSize().getSizeName()))
|
|
|
.num(num)
|
|
|
.totalEM(totalEM)
|
|
|
.earnestMoney(BigDecimalHelper.formatNumber(totalEM, BigDecimalHelper.FORMAT_TWOBITAFTERPOINT))
|
...
|
...
|
@@ -41,7 +42,7 @@ public final class ProductConvertor { |
|
|
aosc.setColorId(Integer.valueOf(storageDataResp.getColorId()));
|
|
|
aosc.setColorName(storageDataResp.getColorName());
|
|
|
aosc.setSizeId(storageDataResp.getSize().getSizeId());
|
|
|
aosc.setSizeName(storageDataResp.getSize().getSizeName());
|
|
|
aosc.setSizeName(SellerGoodsHelper.appendSizeCNUnit(storageDataResp.getSize().getSizeName()));
|
|
|
aosc.setStorageId(storageDataResp.getStorageId());
|
|
|
aosc.setNum(goodsBo.getNum());
|
|
|
return aosc;
|
...
|
...
|
|