use skup in sale status control over-flow price tips
Showing
1 changed file
with
13 additions
and
3 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,10 +342,14 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I | @@ -336,10 +342,14 @@ 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)){ | ||
342 | - statusDetail.setDetailDesc(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)) { | ||
351 | + statusDetail.setDetailDesc(tips); | ||
352 | + } | ||
343 | } | 353 | } |
344 | orderDetailInfo.setStatusDetail(statusDetail); | 354 | orderDetailInfo.setStatusDetail(statusDetail); |
345 | GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods); | 355 | GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods); |
-
Please register or login to post a comment