|
|
package com.yohoufo.order.service.seller.deposit;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yohobuy.ufo.model.order.bo.DepositOrderStatisticInfo;
|
|
|
import com.yohobuy.ufo.model.order.bo.TimeoutBo;
|
|
|
import com.yohobuy.ufo.model.order.common.AppraiseOrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderAttributes;
|
...
|
...
|
@@ -63,6 +64,9 @@ public class SellerDepositOrderDetailService extends AbsOrderViewService { |
|
|
@Autowired
|
|
|
private IExpressInfoService expressInfoService;
|
|
|
|
|
|
@Autowired
|
|
|
private SellerDepositOrderService sellerDepositOrderService;
|
|
|
|
|
|
|
|
|
private static final List<Integer> showEXpressInfoStatusList = Lists.newArrayList(AppraiseOrderStatus.SELLER_SEND_OUT.getCode(),
|
|
|
AppraiseOrderStatus.WAITING_RECEIVE.getCode(),
|
...
|
...
|
@@ -88,6 +92,10 @@ public class SellerDepositOrderDetailService extends AbsOrderViewService { |
|
|
AppraiseOrderStatus.PLATFORM_APPRAISE_UNSURE.getCode()
|
|
|
);
|
|
|
|
|
|
private static final List<Integer> showAppraiseProgress = Lists.newArrayList(AppraiseOrderStatus.PLATFORM_RECEIVE.getCode(),
|
|
|
AppraiseOrderStatus.FINISH.getCode()
|
|
|
);
|
|
|
|
|
|
private static final List<Integer> addressUpgradableStatusList = Lists.newArrayList(AppraiseOrderStatus.HAS_PAYED.getCode());
|
|
|
|
|
|
|
...
|
...
|
@@ -119,6 +127,11 @@ public class SellerDepositOrderDetailService extends AbsOrderViewService { |
|
|
if (showUserAddressStatusList.contains(pao.getStatus())){
|
|
|
userAddress = appraiseOrderMetaService.getHidderUserAddress(orderCode);
|
|
|
}
|
|
|
DepositOrderStatisticInfo orderStatisticInfo = null;
|
|
|
if (showAppraiseProgress.contains(pao.getStatus())){
|
|
|
orderStatisticInfo = sellerDepositOrderService.getAppraiseProgress(uid, orderCode);
|
|
|
}
|
|
|
|
|
|
boolean addressUpgradable = addressUpgradableStatusList.contains(pao.getStatus());
|
|
|
SellerDepositOrderPrdListReq sknListReq = SellerDepositOrderPrdListReq.builder()
|
|
|
.orderCode(orderCode)
|
...
|
...
|
@@ -137,6 +150,7 @@ public class SellerDepositOrderDetailService extends AbsOrderViewService { |
|
|
.addressUpgradable(addressUpgradable)
|
|
|
.buttons(aos.detailButtons(oa))
|
|
|
.lastExpressInfoDetail(expressInfoService.getLastExpressInfoDetail(pao))
|
|
|
.appraiseProgress(orderStatisticInfo)
|
|
|
.build()
|
|
|
;
|
|
|
}
|
...
|
...
|
|