|
@@ -40,6 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
@@ -40,6 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
40
|
|
40
|
|
41
|
import java.util.ArrayList;
|
41
|
import java.util.ArrayList;
|
42
|
import java.util.List;
|
42
|
import java.util.List;
|
|
|
43
|
+import java.util.Objects;
|
43
|
import java.util.Optional;
|
44
|
import java.util.Optional;
|
44
|
|
45
|
|
45
|
/**
|
46
|
/**
|
|
@@ -225,7 +226,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
|
@@ -225,7 +226,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
225
|
GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods);
|
226
|
GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods);
|
226
|
SkupType skupType = SkupType.getSkupType(sellerOrderGoods.getAttributes());
|
227
|
SkupType skupType = SkupType.getSkupType(sellerOrderGoods.getAttributes());
|
227
|
goodsInfo.setProductName(goodsInfo.getProductName());
|
228
|
goodsInfo.setProductName(goodsInfo.getProductName());
|
228
|
- goodsInfo.setTypeTag(SellerGoodsHelper.buildGoodsTypeTag(skupType));
|
229
|
+ goodsInfo.setTypeTag(SellerGoodsHelper.buildGoodsTypeTag(BuyerOrderUtils.convertSkupTypeIfNeed(buyerOrder.getAttributes(), skupType)));
|
229
|
if(isOffline) {
|
230
|
if(isOffline) {
|
230
|
goodsInfo.setTypeTag("门店订单");
|
231
|
goodsInfo.setTypeTag("门店订单");
|
231
|
}
|
232
|
}
|
|
@@ -267,8 +268,19 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
|
@@ -267,8 +268,19 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
267
|
.activityCutPrice(MathUtils.formatStr(amountDetailBo.getActivityCutAmount()))
|
268
|
.activityCutPrice(MathUtils.formatStr(amountDetailBo.getActivityCutAmount()))
|
268
|
.couponCutPrice(MathUtils.formatStr(amountDetailBo.getCouponCutAmount()))
|
269
|
.couponCutPrice(MathUtils.formatStr(amountDetailBo.getCouponCutAmount()))
|
269
|
.shippingCouponCutPrice(MathUtils.formatStr(amountDetailBo.getShippingCouponCutAmount()))
|
270
|
.shippingCouponCutPrice(MathUtils.formatStr(amountDetailBo.getShippingCouponCutAmount()))
|
|
|
271
|
+
|
270
|
.realPayPrice(buyerOrder.getAmount() == null ? "0" : buyerOrder.getAmount().toPlainString())
|
272
|
.realPayPrice(buyerOrder.getAmount() == null ? "0" : buyerOrder.getAmount().toPlainString())
|
271
|
.build();
|
273
|
.build();
|
|
|
274
|
+ OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes());
|
|
|
275
|
+
|
|
|
276
|
+ if (Objects.equals(OrderAttributes.QUICK_DELIVER, oa)){
|
|
|
277
|
+ priceInfo.setQuickDeliveServicePrice(MathUtils.formatStr(amountDetailBo.getDepositAmount()));
|
|
|
278
|
+ }
|
|
|
279
|
+
|
|
|
280
|
+ if (Objects.equals(OrderAttributes.DEPOSITE, oa)){
|
|
|
281
|
+ priceInfo.setDepositPrice(MathUtils.formatStr(amountDetailBo.getDepositAmount()));
|
|
|
282
|
+ }
|
|
|
283
|
+
|
272
|
SkupTypeCodeSupport.CodeNode codeNode = SkupTypeCodeSupport.explain(buyerOrder.getAttributes());
|
284
|
SkupTypeCodeSupport.CodeNode codeNode = SkupTypeCodeSupport.explain(buyerOrder.getAttributes());
|
273
|
if (codeNode.getRegion() == RegionEnum.HONGKONG.getCode()){
|
285
|
if (codeNode.getRegion() == RegionEnum.HONGKONG.getCode()){
|
274
|
//tariff
|
286
|
//tariff
|
|
@@ -281,6 +293,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
|
@@ -281,6 +293,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
281
|
double cutShipPrice = amountDetailBo.getShippingActivityCutAmount();
|
293
|
double cutShipPrice = amountDetailBo.getShippingActivityCutAmount();
|
282
|
priceInfo.setShippingActivityCutPrice(MathUtils.formatStr(cutShipPrice));
|
294
|
priceInfo.setShippingActivityCutPrice(MathUtils.formatStr(cutShipPrice));
|
283
|
}
|
295
|
}
|
|
|
296
|
+
|
284
|
} else {
|
297
|
} else {
|
285
|
//priceInfo
|
298
|
//priceInfo
|
286
|
priceInfo = OrderDetailInfo.PriceInfo.builder()
|
299
|
priceInfo = OrderDetailInfo.PriceInfo.builder()
|