...
|
...
|
@@ -2,7 +2,7 @@ package com.yohoufo.order.service.impl; |
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yohobuy.ufo.model.order.bo.GoodsInfo;
|
|
|
import com.yohobuy.ufo.model.order.bo.OrderInfo;
|
|
|
import com.yohobuy.ufo.model.order.common.ButtonShow;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
|
|
import com.yohobuy.ufo.model.order.resp.OrderListInfo;
|
...
|
...
|
@@ -18,7 +18,6 @@ import com.yohoufo.order.service.IOrderListService; |
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
...
|
...
|
@@ -147,12 +146,18 @@ public abstract class AbsOrderListService extends AbsOrderViewService implements |
|
|
|
|
|
orderListInfo.setStatuStr(orderStatus.getStatusStr(tabType));
|
|
|
|
|
|
// 按钮显示
|
|
|
orderListInfo.setButtons(formatButtons(orderStatus, orderStatus.getListButtons(tabType)));
|
|
|
|
|
|
// 当订单状态是待付款, 显示leftTime
|
|
|
Integer leftTime = getLeftTime(tabType, buyerUid, orderCode, buyerOrder.getStatus(), buyerOrder.getCreateTime());
|
|
|
orderListInfo.setLeftTime(leftTime);
|
|
|
|
|
|
// 按钮显示
|
|
|
orderListInfo.setButtons(formatButtons(orderStatus, orderStatus.getListButtons(tabType)));
|
|
|
|
|
|
// 当剩余时间小于0
|
|
|
if (orderListInfo.getLeftTime() != null && orderListInfo.getLeftTime() <= 0){
|
|
|
orderListInfo.getButtons().removeIf(x->x.getCode() == ButtonShow.NOW_BUY.getCode());
|
|
|
}
|
|
|
|
|
|
BuyerOrderGoods buyerOrderGoods = buyerOrderGoodsMap.get(buyerOrder.getOrderCode());
|
|
|
if (buyerOrderGoods == null){
|
|
|
logger.warn("getOrderList buyer goods not exist, uid is {}, orderCode is {}",
|
...
|
...
|
|