...
|
...
|
@@ -4,7 +4,6 @@ import com.yohobuy.ufo.model.order.bo.ButtonShowBo; |
|
|
import com.yohobuy.ufo.model.order.bo.OrderInfo;
|
|
|
import com.yohobuy.ufo.model.order.bo.TimeoutBo;
|
|
|
import com.yohobuy.ufo.model.order.common.*;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.order.common.Payment;
|
|
|
import com.yohoufo.order.constants.ViewType;
|
...
|
...
|
@@ -12,8 +11,10 @@ import com.yohoufo.order.model.dto.BuyerPenaltyCalResult; |
|
|
import com.yohoufo.order.model.response.OrderDetailInfo;
|
|
|
import com.yohoufo.order.service.handler.BuyerCancelCompensateComputeHandler;
|
|
|
import com.yohoufo.order.service.support.codegenerator.OrderCodeGenerator;
|
|
|
import com.yohoufo.order.service.support.codegenerator.bean.CodeMeta;
|
|
|
import com.yohoufo.order.service.wrapper.*;
|
|
|
import com.yohoufo.order.service.wrapper.OrderTimeoutContext;
|
|
|
import com.yohoufo.order.service.wrapper.OrderTimeoutFactory;
|
|
|
import com.yohoufo.order.service.wrapper.SellerOrderTimeoutWrapper;
|
|
|
import com.yohoufo.order.service.wrapper.TimeoutWrapper;
|
|
|
import com.yohoufo.order.utils.BuyerOrderUtils;
|
|
|
import com.yohoufo.order.utils.TimeUtils;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
...
|
...
|
@@ -209,6 +210,7 @@ public abstract class AbsOrderViewService { |
|
|
return leftTime;
|
|
|
}
|
|
|
|
|
|
@Deprecated
|
|
|
Integer getPayLeftTime(TabType actor, Integer orderStatus, int createTime){
|
|
|
boolean isBuyer = actor.equals(TabType.BUY);
|
|
|
boolean isSeller = actor.equals(TabType.SELL);
|
...
|
...
|
@@ -223,6 +225,7 @@ public abstract class AbsOrderViewService { |
|
|
return leftTime;
|
|
|
}
|
|
|
|
|
|
@Deprecated
|
|
|
Integer getDeliverLeftTime(int buyerUid, long orderCode, Integer orderStatus, OrderAttributes oa){
|
|
|
Integer leftTime = null;
|
|
|
if (OrderStatus.HAS_PAYED.getCode() == orderStatus){
|
...
|
...
|
@@ -232,14 +235,6 @@ public abstract class AbsOrderViewService { |
|
|
return leftTime;
|
|
|
}
|
|
|
|
|
|
Integer getDeliverTimeLimit(int buyerUid, long orderCode, Integer orderStatus, OrderAttributes oa){
|
|
|
Integer timeLimit = null;
|
|
|
if (OrderStatus.HAS_PAYED.getCode() == orderStatus){
|
|
|
TimeoutBo timeoutBo = ordersPayService.getDeliverLeftTime(buyerUid, orderCode, oa);
|
|
|
timeLimit = timeoutBo.getTimelimit();
|
|
|
}
|
|
|
return timeLimit;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|