...
|
...
|
@@ -8,6 +8,7 @@ import com.yoho.error.exception.ServiceException; |
|
|
import com.yohobuy.ufo.model.order.bo.*;
|
|
|
import com.yohobuy.ufo.model.order.common.*;
|
|
|
import com.yohobuy.ufo.model.order.constants.OrderConstant;
|
|
|
import com.yohobuy.ufo.model.order.constants.OrderDetailDesc;
|
|
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
|
|
import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail;
|
|
|
import com.yohobuy.ufo.model.order.vo.AddressInfo;
|
...
|
...
|
@@ -426,7 +427,7 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I |
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
protected OrderDetailInfo.StatusDetail getStatusDetail(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) {
|
|
|
protected OrderDetailInfo.StatusDetail getStatusDetail(SkupType skupType,BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) {
|
|
|
OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder()
|
|
|
.status(orderStatus.getCode())
|
|
|
.statuStr(orderStatus.getStatusStr(tabType))
|
...
|
...
|
@@ -446,14 +447,14 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I |
|
|
if(ActionStatusHold.getSellerShowExpressStatusList().contains(orderStatus.getCode())){
|
|
|
statusDetail.setExpressShow(true);
|
|
|
}
|
|
|
String detailDesc = formatDetailDesc(buyerOrder, orderStatus, tabType);
|
|
|
String detailDesc = formatDetailDesc(skupType, buyerOrder, orderStatus, tabType);
|
|
|
statusDetail.setDetailDesc(detailDesc);
|
|
|
return statusDetail;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String formatDetailDesc(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType){
|
|
|
private String formatDetailDesc(SkupType skupType, BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType){
|
|
|
OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes());
|
|
|
String detailDesc = orderStatus.getDetailDesc(tabType,oa);
|
|
|
if (Objects.nonNull(orderStatus)
|
...
|
...
|
@@ -478,6 +479,9 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I |
|
|
buyerOrder.getOrderCode(), detailDesc, orderOverTime);
|
|
|
}
|
|
|
}
|
|
|
if (BuyerOrderUtils.isQuickDeliverDeposit(skupType, buyerOrder)) {
|
|
|
detailDesc = OrderDetailDesc.Seller.TRADE_DONE_QUICK_DELIVER;
|
|
|
}
|
|
|
return detailDesc;
|
|
|
}
|
|
|
|
...
|
...
|
|