Showing
1 changed file
with
5 additions
and
6 deletions
@@ -82,12 +82,13 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO | @@ -82,12 +82,13 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO | ||
82 | 82 | ||
83 | } | 83 | } |
84 | 84 | ||
85 | - private final static List<Integer> buyerViewExpressStatus = Arrays.asList(OrderStatus.WAITING_RECEIVE.getCode()); | ||
86 | - | 85 | + private static final List<Integer> SHOW_EXPRESS_STATUS_LIST = Arrays.asList(OrderStatus.WAITING_RECEIVE.getCode(), |
86 | + OrderStatus.DONE.getCode() | ||
87 | + ); | ||
87 | 88 | ||
88 | @Override | 89 | @Override |
89 | ExpressInfoDetail getExpressInfoDetail(OrderStatus orderStatus, long orderCode) { | 90 | ExpressInfoDetail getExpressInfoDetail(OrderStatus orderStatus, long orderCode) { |
90 | - if (!buyerViewExpressStatus.contains(orderStatus.getCode())){ | 91 | + if (!SHOW_EXPRESS_STATUS_LIST.contains(orderStatus.getCode())){ |
91 | return null; | 92 | return null; |
92 | } | 93 | } |
93 | Integer type = ExpressInfoConstant.EXPRESS_TYPE_2; | 94 | Integer type = ExpressInfoConstant.EXPRESS_TYPE_2; |
@@ -118,9 +119,7 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO | @@ -118,9 +119,7 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO | ||
118 | return userAddress; | 119 | return userAddress; |
119 | } | 120 | } |
120 | 121 | ||
121 | - private static final List<Integer> SHOW_EXPRESS_STATUS_LIST = Arrays.asList(OrderStatus.WAITING_RECEIVE.getCode(), | ||
122 | - OrderStatus.DONE.getCode() | ||
123 | - ); | 122 | + |
124 | 123 | ||
125 | protected OrderDetailInfo.StatusDetail getStatusDetail(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) { | 124 | protected OrderDetailInfo.StatusDetail getStatusDetail(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) { |
126 | OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder() | 125 | OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder() |
-
Please register or login to post a comment