|
|
package com.yohoufo.order.service.impl;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohobuy.ufo.model.order.bo.ButtonShowBo;
|
|
|
import com.yohobuy.ufo.model.order.bo.OrderInfo;
|
|
|
import com.yohobuy.ufo.model.order.bo.SoldPrdComputeBo;
|
|
|
import com.yohobuy.ufo.model.order.common.ButtonShow;
|
...
|
...
|
@@ -24,6 +26,7 @@ import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* Created by chenchao on 2018/9/20.
|
...
|
...
|
@@ -157,7 +160,8 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen |
|
|
orderDetailInfo.setUid(buyerUid = buyerOrder.getUid());
|
|
|
orderDetailInfo.setOrderCode(orderCode = buyerOrder.getOrderCode());
|
|
|
orderDetailInfo.setSubmitOrderTimeStr(DateUtil.formatDate(buyerOrder.getCreateTime(), DateUtil.yyyy_MM_dd_HH_mm_SS));
|
|
|
orderDetailInfo.setButtons(formatButtons(orderStatus, new ArrayList<>(orderStatus.getDetailButtons(tabType))));
|
|
|
List<ButtonShowBo> buttonShowList = orderStatus.getDetailButtons(tabType);
|
|
|
orderDetailInfo.setButtons(formatButtons(orderStatus, buttonShowList==null? Lists.newArrayList() : new ArrayList<>(buttonShowList)));
|
|
|
|
|
|
// 买家 买家订单号 需要处理立即支付
|
|
|
// 卖家 卖家订单号 不存在立即支付的按钮
|
...
|
...
|
|