...
|
...
|
@@ -40,6 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
import java.util.Optional;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -225,7 +226,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
|
|
GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods);
|
|
|
SkupType skupType = SkupType.getSkupType(sellerOrderGoods.getAttributes());
|
|
|
goodsInfo.setProductName(goodsInfo.getProductName());
|
|
|
goodsInfo.setTypeTag(SellerGoodsHelper.buildGoodsTypeTag(skupType));
|
|
|
goodsInfo.setTypeTag(SellerGoodsHelper.buildGoodsTypeTag(BuyerOrderUtils.convertSkupTypeIfNeed(buyerOrder.getAttributes(), skupType)));
|
|
|
if(isOffline) {
|
|
|
goodsInfo.setTypeTag("门店订单");
|
|
|
}
|
...
|
...
|
@@ -267,8 +268,19 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
|
|
.activityCutPrice(MathUtils.formatStr(amountDetailBo.getActivityCutAmount()))
|
|
|
.couponCutPrice(MathUtils.formatStr(amountDetailBo.getCouponCutAmount()))
|
|
|
.shippingCouponCutPrice(MathUtils.formatStr(amountDetailBo.getShippingCouponCutAmount()))
|
|
|
|
|
|
.realPayPrice(buyerOrder.getAmount() == null ? "0" : buyerOrder.getAmount().toPlainString())
|
|
|
.build();
|
|
|
OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes());
|
|
|
|
|
|
if (Objects.equals(OrderAttributes.QUICK_DELIVER, oa)){
|
|
|
priceInfo.setQuickDeliveServicePrice(MathUtils.formatStr(amountDetailBo.getDepositAmount()));
|
|
|
}
|
|
|
|
|
|
if (Objects.equals(OrderAttributes.DEPOSITE, oa)){
|
|
|
priceInfo.setDepositPrice(MathUtils.formatStr(amountDetailBo.getDepositAmount()));
|
|
|
}
|
|
|
|
|
|
SkupTypeCodeSupport.CodeNode codeNode = SkupTypeCodeSupport.explain(buyerOrder.getAttributes());
|
|
|
if (codeNode.getRegion() == RegionEnum.HONGKONG.getCode()){
|
|
|
//tariff
|
...
|
...
|
@@ -281,6 +293,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
|
|
double cutShipPrice = amountDetailBo.getShippingActivityCutAmount();
|
|
|
priceInfo.setShippingActivityCutPrice(MathUtils.formatStr(cutShipPrice));
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
//priceInfo
|
|
|
priceInfo = OrderDetailInfo.PriceInfo.builder()
|
...
|
...
|
|