Showing
2 changed files
with
4 additions
and
7 deletions
@@ -356,14 +356,10 @@ public abstract class AbsOrderListService extends AbsOrderViewService implements | @@ -356,14 +356,10 @@ public abstract class AbsOrderListService extends AbsOrderViewService implements | ||
356 | } | 356 | } |
357 | } | 357 | } |
358 | 358 | ||
359 | - TimeoutBo timeoutBo = calcTimeout(buyerOrder, orderStatus, tabType, orderListInfo.getBidDepositInfo()); | 359 | + Optional<TimeoutBo> timeoutBo = Optional.ofNullable(calcTimeout(buyerOrder, orderStatus, tabType, orderListInfo.getBidDepositInfo())); |
360 | // 当订单状态是待付款, 显示leftTime | 360 | // 当订单状态是待付款, 显示leftTime |
361 | -// OrderAttributes oa = OrderAttributes.getOrderAttributes(oac); | ||
362 | -// TimeoutBo timeoutBo = calTimeout(tabType, buyerUid, orderCode, | ||
363 | -// buyerOrder.getStatus(), buyerOrder.getCreateTime(), oa); | ||
364 | - Integer leftTime = Optional.ofNullable(timeoutBo).map(TimeoutBo::getLeftTime).orElse(null); | ||
365 | - orderListInfo.setLeftTime(leftTime); | ||
366 | - orderListInfo.setTimeLimit(timeoutBo.getTimelimit()); | 361 | + orderListInfo.setLeftTime(timeoutBo.map(TimeoutBo::getLeftTime).orElse(null)); |
362 | + orderListInfo.setTimeLimit(timeoutBo.map(TimeoutBo::getTimelimit).orElse(null)); | ||
367 | 363 | ||
368 | BuyerOrderGoods buyerOrderGoods = buyerOrderGoodsMap.get(buyerOrder.getOrderCode()); | 364 | BuyerOrderGoods buyerOrderGoods = buyerOrderGoodsMap.get(buyerOrder.getOrderCode()); |
369 | if (buyerOrderGoods == null){ | 365 | if (buyerOrderGoods == null){ |
-
Please register or login to post a comment