...
|
...
|
@@ -10,6 +10,7 @@ import com.yohobuy.ufo.model.order.resp.SellerDepositOrderComputeResp; |
|
|
import com.yohobuy.ufo.model.order.resp.SellerDepositOrderSubmitResp;
|
|
|
import com.yohobuy.ufo.model.order.vo.GoodsVo;
|
|
|
import com.yohobuy.ufo.model.order.vo.ProductVo;
|
|
|
import com.yohoufo.common.utils.BigDecimalHelper;
|
|
|
import com.yohoufo.dal.order.AppraiseOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.AppraiseOrderMapper;
|
|
|
import com.yohoufo.dal.order.AppraiseOrderMetaMapper;
|
...
|
...
|
@@ -89,7 +90,7 @@ public class SellerDepositOrderService extends AbsGoodsServiceOrderService imple |
|
|
SellerDepositOrderSupport.SummaryNode summaryNode = sdos.buildList(dtNode,
|
|
|
SellerDepositOrderSupport.buildProductVoTypeRef(),
|
|
|
SellerDepositOrderSupport.buildgoodsVoTypeRef());
|
|
|
String earnestMoneystr = SellerOrderConvertor.formatFee(summaryNode.earnestMoney);
|
|
|
String earnestMoneystr = BigDecimalHelper.formatNumber(summaryNode.earnestMoney, BigDecimalHelper.FORMAT_TWOBITAFTERPOINT);
|
|
|
String tips = "温馨提示:早支付早发货早寄存早上架早出售";
|
|
|
SellerDepositOrderComputeResp resp = SellerDepositOrderComputeResp.builder()
|
|
|
.earnestMoney(earnestMoneystr)
|
...
|
...
|
@@ -105,7 +106,7 @@ public class SellerDepositOrderService extends AbsGoodsServiceOrderService imple |
|
|
SellerDepositOrderPrepareService.DTNode dtNode = sellerDepositOrderPrepareService.checkAndAckquireBySku(req);
|
|
|
SellerOrderComputeResult socr = dtNode.getStorageIdSOCRMap().get(req.getStorageId());
|
|
|
BigDecimal total = socr.getEarnestMoney().getEarnestMoney().multiply(new BigDecimal(req.getNum()));
|
|
|
String earnestMoneystr = SellerOrderConvertor.formatFee(total);
|
|
|
String earnestMoneystr = BigDecimalHelper.formatNumber(total, BigDecimalHelper.FORMAT_TWOBITAFTERPOINT);
|
|
|
SellerDepositOrderComputeResp resp = SellerDepositOrderComputeResp.builder()
|
|
|
.earnestMoney(earnestMoneystr)
|
|
|
.build();
|
...
|
...
|
|