Authored by qinchao

Merge branch 'test6.8.3' of http://git.yoho.cn/ufo/yohoufo-fore into test6.8.3

1 package com.yohoufo.order.service; 1 package com.yohoufo.order.service;
2 2
3 -import com.yohobuy.ufo.model.order.resp.OrderListInfo;  
4 import com.yohobuy.ufo.model.order.vo.AddressInfo; 3 import com.yohobuy.ufo.model.order.vo.AddressInfo;
5 import com.yohoufo.order.common.ActionStatusHold; 4 import com.yohoufo.order.common.ActionStatusHold;
6 -import com.yohoufo.order.service.IBuyerOrderMetaService;  
7 5
8 /** 6 /**
9 * Created by chao.chen on 2018/12/11. 7 * Created by chao.chen on 2018/12/11.
@@ -12,7 +10,6 @@ public interface AbsBuyerOrderViewService { @@ -12,7 +10,6 @@ public interface AbsBuyerOrderViewService {
12 10
13 IBuyerOrderMetaService getBuyerOrderMetaService(); 11 IBuyerOrderMetaService getBuyerOrderMetaService();
14 12
15 - void setAddressInfo(OrderListInfo orderListInfo);  
16 13
17 default AddressInfo getAddressInfo(int uid, long orderCode, Integer orderStauts){ 14 default AddressInfo getAddressInfo(int uid, long orderCode, Integer orderStauts){
18 if (!ActionStatusHold.buyerCanModifyAddress(orderStauts)){ 15 if (!ActionStatusHold.buyerCanModifyAddress(orderStauts)){
@@ -169,9 +169,11 @@ public abstract class AbsOrderListService extends AbsOrderViewService implements @@ -169,9 +169,11 @@ public abstract class AbsOrderListService extends AbsOrderViewService implements
169 orderListInfo.setGoodsInfo(goodsInfo); 169 orderListInfo.setGoodsInfo(goodsInfo);
170 orderListInfo.setSecendLevelCreateTime(buyerOrder.getCreateTime()); 170 orderListInfo.setSecendLevelCreateTime(buyerOrder.getCreateTime());
171 orderListInfo.setCreateTime(DateUtil.formatDate(buyerOrder.getCreateTime(), DateUtil.yyyy_MM_dd_HH_mm_SS)); 171 orderListInfo.setCreateTime(DateUtil.formatDate(buyerOrder.getCreateTime(), DateUtil.yyyy_MM_dd_HH_mm_SS));
  172 + setAddressInfo(orderListInfo);
172 return orderListInfo; 173 return orderListInfo;
173 } 174 }
174 175
  176 + abstract void setAddressInfo(OrderListInfo orderListInfo);
175 177
176 protected abstract void resetDynamicProporties(List<OrderListInfo> list,int type); 178 protected abstract void resetDynamicProporties(List<OrderListInfo> list,int type);
177 } 179 }
@@ -145,6 +145,11 @@ public class SellerOrderListService extends AbsOrderListService implements IOrde @@ -145,6 +145,11 @@ public class SellerOrderListService extends AbsOrderListService implements IOrde
145 } 145 }
146 146
147 @Override 147 @Override
  148 + void setAddressInfo(OrderListInfo orderListInfo) {
  149 +
  150 + }
  151 +
  152 + @Override
148 protected void resetDynamicProporties(List<OrderListInfo> list, int type) { 153 protected void resetDynamicProporties(List<OrderListInfo> list, int type) {
149 if(CollectionUtils.isNotEmpty(list)){ 154 if(CollectionUtils.isNotEmpty(list)){
150 list.forEach(oli -> { 155 list.forEach(oli -> {
@@ -705,4 +705,10 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi @@ -705,4 +705,10 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
705 return total; 705 return total;
706 } 706 }
707 707
  708 + public List<OrderListInfo> refresh(){
  709 + return null;
  710 + }
  711 +
  712 +
  713 +
708 } 714 }