Merge branch 'test6.9.7' of http://git.yoho.cn/ufo/yohoufo-fore into test6.9.7
Showing
5 changed files
with
30 additions
and
10 deletions
@@ -32,6 +32,10 @@ public class AmountDetailBo { | @@ -32,6 +32,10 @@ public class AmountDetailBo { | ||
32 | * 运费券减免金额 | 32 | * 运费券减免金额 |
33 | */ | 33 | */ |
34 | private double shippingCouponCutAmount; | 34 | private double shippingCouponCutAmount; |
35 | + /** | ||
36 | + * 活动减免的运费金额 | ||
37 | + */ | ||
38 | + private double shippingActivityCutAmount; | ||
35 | 39 | ||
36 | /** | 40 | /** |
37 | * 关税费率 | 41 | * 关税费率 |
@@ -162,7 +162,7 @@ public class OrderDetailInfo { | @@ -162,7 +162,7 @@ public class OrderDetailInfo { | ||
162 | String goodPrice; | 162 | String goodPrice; |
163 | 163 | ||
164 | /** | 164 | /** |
165 | - * 运费 | 165 | + * 没有任何优惠的原始运费 |
166 | */ | 166 | */ |
167 | String feePrice; | 167 | String feePrice; |
168 | 168 | ||
@@ -180,8 +180,17 @@ public class OrderDetailInfo { | @@ -180,8 +180,17 @@ public class OrderDetailInfo { | ||
180 | * 运费券金额 | 180 | * 运费券金额 |
181 | */ | 181 | */ |
182 | String shippingCouponCutPrice; | 182 | String shippingCouponCutPrice; |
183 | + | ||
184 | + /** | ||
185 | + * 活动减免 | ||
186 | + */ | ||
187 | + String shippingActivityCutPrice; | ||
188 | + /** | ||
189 | + * 活动减免的税费 | ||
190 | + */ | ||
191 | + String tariffActivityCutPrice; | ||
183 | /** | 192 | /** |
184 | - * 税费 | 193 | + * 原始税费 |
185 | */ | 194 | */ |
186 | String tariffPrice; | 195 | String tariffPrice; |
187 | 196 |
@@ -249,8 +249,15 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen | @@ -249,8 +249,15 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen | ||
249 | .build(); | 249 | .build(); |
250 | SkupTypeCodeSupport.CodeNode codeNode = SkupTypeCodeSupport.explain(buyerOrder.getAttributes()); | 250 | SkupTypeCodeSupport.CodeNode codeNode = SkupTypeCodeSupport.explain(buyerOrder.getAttributes()); |
251 | if (codeNode.getRegion() == RegionEnum.HONGKONG.getCode()){ | 251 | if (codeNode.getRegion() == RegionEnum.HONGKONG.getCode()){ |
252 | - double finalTariffPrice = YHMath.sub(amountDetailBo.getTariffAmount(), amountDetailBo.getTariffCutAmount()); | ||
253 | - priceInfo.setTariffPrice(MathUtils.formatStr(finalTariffPrice)); | 252 | + //tariff |
253 | + double cutTarrifPrice = amountDetailBo.getTariffCutAmount(); | ||
254 | + double normalTarrifPrice = amountDetailBo.getTariffAmount(); | ||
255 | + priceInfo.setTariffPrice(MathUtils.formatStr(normalTarrifPrice)); | ||
256 | + priceInfo.setTariffActivityCutPrice(MathUtils.formatStr(cutTarrifPrice)); | ||
257 | + | ||
258 | + //ship fee | ||
259 | + double cutShipPrice = amountDetailBo.getShippingActivityCutAmount(); | ||
260 | + priceInfo.setShippingActivityCutPrice(MathUtils.formatStr(cutShipPrice)); | ||
254 | } | 261 | } |
255 | } else { | 262 | } else { |
256 | //priceInfo | 263 | //priceInfo |
@@ -137,21 +137,16 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO | @@ -137,21 +137,16 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO | ||
137 | return detailDesc; | 137 | return detailDesc; |
138 | } | 138 | } |
139 | 139 | ||
140 | + @Override | ||
140 | protected OrderDetailInfo.StatusDetail getStatusDetail(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) { | 141 | protected OrderDetailInfo.StatusDetail getStatusDetail(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) { |
141 | OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder() | 142 | OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder() |
142 | .status(orderStatus.getCode()) | 143 | .status(orderStatus.getCode()) |
143 | .statuStr(orderStatus.getStatusStr(tabType)) | 144 | .statuStr(orderStatus.getStatusStr(tabType)) |
144 | - | ||
145 | .build(); | 145 | .build(); |
146 | String detailDesc = formatDetailDesc(buyerOrder, orderStatus.getDetailDesc(tabType)); | 146 | String detailDesc = formatDetailDesc(buyerOrder, orderStatus.getDetailDesc(tabType)); |
147 | statusDetail.setDetailDesc(detailDesc); | 147 | statusDetail.setDetailDesc(detailDesc); |
148 | OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes()); | 148 | OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes()); |
149 | // 待付款时,剩余时间 | 149 | // 待付款时,剩余时间 |
150 | - /* | ||
151 | - Integer leftTime = getLeftTime(tabType,buyerOrder.getUid(), | ||
152 | - buyerOrder.getOrderCode(), orderStatus.getCode(), | ||
153 | - buyerOrder.getCreateTime(), oa); | ||
154 | - */ | ||
155 | TimeoutBo timeoutBo = calTimeout(tabType,buyerOrder.getUid(), | 150 | TimeoutBo timeoutBo = calTimeout(tabType,buyerOrder.getUid(), |
156 | buyerOrder.getOrderCode(), orderStatus.getCode(), | 151 | buyerOrder.getOrderCode(), orderStatus.getCode(), |
157 | buyerOrder.getCreateTime(), oa); | 152 | buyerOrder.getCreateTime(), oa); |
@@ -635,6 +635,11 @@ public class ShoppingServiceImpl implements IShoppingService { | @@ -635,6 +635,11 @@ public class ShoppingServiceImpl implements IShoppingService { | ||
635 | amountDetailBo.setTariffAmount(tariffFee.getAmount()); | 635 | amountDetailBo.setTariffAmount(tariffFee.getAmount()); |
636 | amountDetailBo.setTariffCutAmount(tariffFee.getCutAmount()); | 636 | amountDetailBo.setTariffCutAmount(tariffFee.getCutAmount()); |
637 | } | 637 | } |
638 | + SingleFeeDetail shipFeeDetail; | ||
639 | + if (Objects.nonNull(shipFeeDetail = chargeResult.getShipFeeDetail())){ | ||
640 | + amountDetailBo.setShippingActivityCutAmount(shipFeeDetail.getCutAmount()); | ||
641 | + } | ||
642 | + | ||
638 | //活动券减免金额 | 643 | //活动券减免金额 |
639 | chargeResult.getCouponPayResultList().getCouponPayResultByCouponType(CouponTypeEnum.ACTIVITY_COUPON.getCode()). | 644 | chargeResult.getCouponPayResultList().getCouponPayResultByCouponType(CouponTypeEnum.ACTIVITY_COUPON.getCode()). |
640 | ifPresent(tempPayResult -> amountDetailBo.setCouponCutAmount(tempPayResult.getCouponAmount())); | 645 | ifPresent(tempPayResult -> amountDetailBo.setCouponCutAmount(tempPayResult.getCouponAmount())); |
-
Please register or login to post a comment