Authored by LUOXC

fixbug null exception

@@ -11,3 +11,4 @@ MANIFEST.MF @@ -11,3 +11,4 @@ MANIFEST.MF
11 deploy/.gitignore 11 deploy/.gitignore
12 product/.gitignore 12 product/.gitignore
13 */.factorypath 13 */.factorypath
  14 +.vscode/
@@ -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){