use skup in sale status control over-flow price tips
Showing
1 changed file
with
12 additions
and
2 deletions
@@ -93,6 +93,12 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I | @@ -93,6 +93,12 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I | ||
93 | 93 | ||
94 | private static final List<Long> SELLER_TYPES = Arrays.asList(OrderCodeType.SELLER_TYPE.getType()); | 94 | private static final List<Long> SELLER_TYPES = Arrays.asList(OrderCodeType.SELLER_TYPE.getType()); |
95 | 95 | ||
96 | + private static final List<Integer> SHOW_OVER_FLOW_PRICE_STATUS ; | ||
97 | + | ||
98 | + static { | ||
99 | + SHOW_OVER_FLOW_PRICE_STATUS = Arrays.asList(SkupStatus.CAN_SELL.getCode()); | ||
100 | + } | ||
101 | + | ||
96 | @Override | 102 | @Override |
97 | public OrderDetailInfo getOrderDetail(OrderRequest orderRequest) { | 103 | public OrderDetailInfo getOrderDetail(OrderRequest orderRequest) { |
98 | int uid; | 104 | int uid; |
@@ -336,11 +342,15 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I | @@ -336,11 +342,15 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I | ||
336 | orderDetailInfo.setUserAddress(addressInfo); | 342 | orderDetailInfo.setUserAddress(addressInfo); |
337 | //卖家 | 343 | //卖家 |
338 | assembleSoldPrdCompute(orderDetailInfo, order.getUid(), sellerOrderGoods.getId()); | 344 | assembleSoldPrdCompute(orderDetailInfo, order.getUid(), sellerOrderGoods.getId()); |
339 | - String tips = buildOverPriceTips(sellerOrderGoods.getStorageId(), sellerOrderGoods.getGoodsPrice()); | 345 | + |
340 | OrderDetailInfo.StatusDetail statusDetail = getStatusDetail(order, skupStatus); | 346 | OrderDetailInfo.StatusDetail statusDetail = getStatusDetail(order, skupStatus); |
341 | - if (StringUtils.isNotBlank(tips)){ | 347 | + |
348 | + if(SHOW_OVER_FLOW_PRICE_STATUS.contains(skupStatus.getCode())) { | ||
349 | + String tips = buildOverPriceTips(sellerOrderGoods.getStorageId(), sellerOrderGoods.getGoodsPrice()); | ||
350 | + if (StringUtils.isNotBlank(tips)) { | ||
342 | statusDetail.setDetailDesc(tips); | 351 | statusDetail.setDetailDesc(tips); |
343 | } | 352 | } |
353 | + } | ||
344 | orderDetailInfo.setStatusDetail(statusDetail); | 354 | orderDetailInfo.setStatusDetail(statusDetail); |
345 | GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods); | 355 | GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods); |
346 | orderDetailInfo.setGoodsInfo(goodsInfo); | 356 | orderDetailInfo.setGoodsInfo(goodsInfo); |
-
Please register or login to post a comment