...
|
...
|
@@ -2,13 +2,17 @@ package com.yohoufo.order.service.impl; |
|
|
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohobuy.ufo.model.order.bo.GoodsInfo;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
|
|
import com.yohobuy.ufo.model.order.resp.OrderCancelComputeResult;
|
|
|
import com.yohobuy.ufo.model.order.resp.OrderListInfo;
|
|
|
import com.yohobuy.ufo.model.order.resp.PageResp;
|
|
|
import com.yohobuy.ufo.model.order.vo.OrderListVo;
|
|
|
import com.yohoufo.dal.order.BuyerOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.order.convert.GoodsInfoConvertor;
|
|
|
import com.yohoufo.order.model.dto.BuyerPenaltyCalResult;
|
|
|
import com.yohoufo.order.model.request.OrderListRequest;
|
|
|
import com.yohoufo.order.model.request.OrderRequest;
|
...
|
...
|
@@ -50,6 +54,9 @@ public class BuyerOrderViewService implements IOrderListService, IOrderDetailSer |
|
|
@Autowired
|
|
|
BuyerOrderGoodsMapper buyerOrderGoodsMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private BuyerOrderAssistant buyerOrderAssistant;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public PageResp getOrderListForErpGW(OrderListRequest request) {
|
...
|
...
|
@@ -148,4 +155,17 @@ public class BuyerOrderViewService implements IOrderListService, IOrderDetailSer |
|
|
.build();
|
|
|
return occr;
|
|
|
}
|
|
|
|
|
|
|
|
|
public GoodsInfo getGoodsInfoOfOrder(int uid, long orderCode){
|
|
|
logger.info("getGoodsInfoOfOrder uid {} orderCode {}", uid, orderCode);
|
|
|
final TabType tabType = TabType.BUY;
|
|
|
GoodsInfo goodsInfo = null;
|
|
|
BuyerOrderAssistant.PreparedData preparedData = buyerOrderAssistant.prepare(orderCode);
|
|
|
SellerOrderGoods psog;
|
|
|
if ((psog= preparedData.getSellerOrderGoods()) != null){
|
|
|
goodsInfo = GoodsInfoConvertor.sellerOrderGoods2GoodsInfo(psog, tabType);
|
|
|
}
|
|
|
return goodsInfo;
|
|
|
}
|
|
|
} |
...
|
...
|
|