Authored by LUOXC

fixbug

@@ -215,8 +215,8 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen @@ -215,8 +215,8 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen
215 if (leftTime != null && leftTime <= 0){ 215 if (leftTime != null && leftTime <= 0){
216 orderDetailInfo.getButtons().removeIf(x-> x!=null && ButtonShow.NOW_BUY.getCode() == (x.getCode())) ; 216 orderDetailInfo.getButtons().removeIf(x-> x!=null && ButtonShow.NOW_BUY.getCode() == (x.getCode())) ;
217 } 217 }
218 -  
219 - OrderDetailInfo.StatusDetail statusDetail = getStatusDetail(buyerOrder, orderStatus, tabType); 218 + SkupType skupType = SkupType.getSkupType(sellerOrderGoods.getAttributes());
  219 + OrderDetailInfo.StatusDetail statusDetail = getStatusDetail(skupType, buyerOrder, orderStatus, tabType);
220 orderDetailInfo.setStatusDetail(statusDetail); 220 orderDetailInfo.setStatusDetail(statusDetail);
221 221
222 boolean isOffline = BuyerOrderUtils.isOffline(buyerOrder.getAttributes()); 222 boolean isOffline = BuyerOrderUtils.isOffline(buyerOrder.getAttributes());
@@ -224,7 +224,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen @@ -224,7 +224,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen
224 224
225 //good info 225 //good info
226 GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods); 226 GoodsInfo goodsInfo = getGoodsInfo(sellerOrderGoods);
227 - SkupType skupType = SkupType.getSkupType(sellerOrderGoods.getAttributes()); 227 +
228 goodsInfo.setProductName(goodsInfo.getProductName()); 228 goodsInfo.setProductName(goodsInfo.getProductName());
229 goodsInfo.setTypeTag(buildOrderTypeTag(buyerOrder.getAttributes(), skupType)); 229 goodsInfo.setTypeTag(buildOrderTypeTag(buyerOrder.getAttributes(), skupType));
230 if(isOffline) { 230 if(isOffline) {
@@ -335,7 +335,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen @@ -335,7 +335,7 @@ public abstract class AbsOrderDetailService extends AbsOrderViewService implemen
335 * @param orderStatus 335 * @param orderStatus
336 * @return 336 * @return
337 */ 337 */
338 - protected abstract OrderDetailInfo.StatusDetail getStatusDetail(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) ; 338 + protected abstract OrderDetailInfo.StatusDetail getStatusDetail(SkupType skupType, BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) ;
339 339
340 /** 340 /**
341 * 用于从cache中获取数据后,重置动态数据 341 * 用于从cache中获取数据后,重置动态数据
@@ -180,7 +180,7 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO @@ -180,7 +180,7 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO
180 } 180 }
181 181
182 @Override 182 @Override
183 - protected OrderDetailInfo.StatusDetail getStatusDetail(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) { 183 + protected OrderDetailInfo.StatusDetail getStatusDetail(SkupType skupType, BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) {
184 OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder() 184 OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder()
185 .status(orderStatus.getCode()) 185 .status(orderStatus.getCode())
186 .statuStr(orderStatus.getStatusStr(tabType)) 186 .statuStr(orderStatus.getStatusStr(tabType))
@@ -8,6 +8,7 @@ import com.yoho.error.exception.ServiceException; @@ -8,6 +8,7 @@ import com.yoho.error.exception.ServiceException;
8 import com.yohobuy.ufo.model.order.bo.*; 8 import com.yohobuy.ufo.model.order.bo.*;
9 import com.yohobuy.ufo.model.order.common.*; 9 import com.yohobuy.ufo.model.order.common.*;
10 import com.yohobuy.ufo.model.order.constants.OrderConstant; 10 import com.yohobuy.ufo.model.order.constants.OrderConstant;
  11 +import com.yohobuy.ufo.model.order.constants.OrderDetailDesc;
11 import com.yohobuy.ufo.model.order.constants.SkupType; 12 import com.yohobuy.ufo.model.order.constants.SkupType;
12 import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail; 13 import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail;
13 import com.yohobuy.ufo.model.order.vo.AddressInfo; 14 import com.yohobuy.ufo.model.order.vo.AddressInfo;
@@ -426,7 +427,7 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I @@ -426,7 +427,7 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
426 * @return 427 * @return
427 */ 428 */
428 @Override 429 @Override
429 - protected OrderDetailInfo.StatusDetail getStatusDetail(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) { 430 + protected OrderDetailInfo.StatusDetail getStatusDetail(SkupType skupType,BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType) {
430 OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder() 431 OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder()
431 .status(orderStatus.getCode()) 432 .status(orderStatus.getCode())
432 .statuStr(orderStatus.getStatusStr(tabType)) 433 .statuStr(orderStatus.getStatusStr(tabType))
@@ -446,14 +447,14 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I @@ -446,14 +447,14 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
446 if(ActionStatusHold.getSellerShowExpressStatusList().contains(orderStatus.getCode())){ 447 if(ActionStatusHold.getSellerShowExpressStatusList().contains(orderStatus.getCode())){
447 statusDetail.setExpressShow(true); 448 statusDetail.setExpressShow(true);
448 } 449 }
449 - String detailDesc = formatDetailDesc(buyerOrder, orderStatus, tabType); 450 + String detailDesc = formatDetailDesc(skupType, buyerOrder, orderStatus, tabType);
450 statusDetail.setDetailDesc(detailDesc); 451 statusDetail.setDetailDesc(detailDesc);
451 return statusDetail; 452 return statusDetail;
452 } 453 }
453 454
454 455
455 456
456 - private String formatDetailDesc(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType){ 457 + private String formatDetailDesc(SkupType skupType, BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType){
457 OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes()); 458 OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes());
458 String detailDesc = orderStatus.getDetailDesc(tabType,oa); 459 String detailDesc = orderStatus.getDetailDesc(tabType,oa);
459 if (Objects.nonNull(orderStatus) 460 if (Objects.nonNull(orderStatus)
@@ -478,6 +479,9 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I @@ -478,6 +479,9 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
478 buyerOrder.getOrderCode(), detailDesc, orderOverTime); 479 buyerOrder.getOrderCode(), detailDesc, orderOverTime);
479 } 480 }
480 } 481 }
  482 + if (BuyerOrderUtils.isQuickDeliverDeposit(skupType, buyerOrder)) {
  483 + detailDesc = OrderDetailDesc.Seller.TRADE_DONE_QUICK_DELIVER;
  484 + }
481 return detailDesc; 485 return detailDesc;
482 } 486 }
483 487
@@ -61,6 +61,13 @@ public class BuyerOrderUtils { @@ -61,6 +61,13 @@ public class BuyerOrderUtils {
61 return isDeposit(buyerOrder.getAttributes()); 61 return isDeposit(buyerOrder.getAttributes());
62 } 62 }
63 63
  64 + /**
  65 + * 是否闪购寄存订单
  66 + */
  67 + public static boolean isQuickDeliverDeposit(SkupType skupType, BuyerOrder buyerOrder) {
  68 + return skupType == SkupType.QUICK_DELIVER && isDeposit(buyerOrder.getAttributes());
  69 + }
  70 +
64 71
65 public static boolean isQuickDeliver(Integer orderAttrCode){ 72 public static boolean isQuickDeliver(Integer orderAttrCode){
66 return Objects.nonNull(orderAttrCode) && Objects.equals(OrderAttributes.QUICK_DELIVER.getCode(), orderAttrCode); 73 return Objects.nonNull(orderAttrCode) && Objects.equals(OrderAttributes.QUICK_DELIVER.getCode(), orderAttrCode);