...
|
...
|
@@ -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;
|
...
|
...
|
@@ -188,11 +189,25 @@ public class SellerDepositOrderListService extends AbsOrderViewService { |
|
|
|
|
|
AppraiseOrderStatus appraiseOrderStatus = AppraiseOrderStatus.getByCode(pao.getStatus());
|
|
|
OrderAttributes oa = OrderAttributes.getOrderAttributes(pao.getAttributes());
|
|
|
String refundEarnestMoney = ordersPayRefund == null? null : ordersPayRefund.getAmount().toPlainString();
|
|
|
boolean notRefund = ordersPayRefund == null;
|
|
|
String refundEarnestMoney = notRefund ? null : ordersPayRefund.getAmount().toPlainString();
|
|
|
switch (appraiseOrderStatus){
|
|
|
case CHECKING_FAKE:
|
|
|
if (notRefund){
|
|
|
refundEarnestMoney = BigDecimal.ZERO.toPlainString();
|
|
|
}
|
|
|
break;
|
|
|
case JUDGE_PASS_WAIT_WAREHOUSE:
|
|
|
if (notRefund){
|
|
|
refundEarnestMoney = BigDecimal.ZERO.toPlainString();
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
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())
|
...
|
...
|
@@ -294,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);
|
|
|
}
|
...
|
...
|
|