...
|
...
|
@@ -2,16 +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.common.OrderListType;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.SkupStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
|
|
import com.yohobuy.ufo.model.order.resp.OrderCntResp;
|
|
|
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.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.BuyerOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.BuyerOrderMapper;
|
|
|
import com.yohoufo.dal.order.BuyerOrderMetaMapper;
|
|
|
import com.yohoufo.dal.order.SellerOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrderGoods;
|
...
|
...
|
@@ -45,7 +46,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
@Autowired
|
|
|
BuyerOrderMapper buyerOrderMapper;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
BuyerOrderGoodsMapper buyerOrderGoodsMapper;
|
|
|
|
...
|
...
|
@@ -53,9 +53,6 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
SellerOrderGoodsMapper sellerOrderGoodsMapper;
|
|
|
|
|
|
@Autowired
|
|
|
BuyerOrderMetaMapper buyerOrderMetaMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private BuyerOrderListServiceImpl buyerOrderListService;
|
|
|
|
|
|
@Autowired
|
...
|
...
|
@@ -321,7 +318,22 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
CacheKeyBuilder.orderDetailKey(sellerUid, TabType.SELL.getValue(), orderCode),
|
|
|
CacheKeyBuilder.orderDetailKey(uid, TabType.BUY.getValue(), orderCode)));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public OrderCntResp getOrderCnt(OrderRequest req, OrderListType listType) {
|
|
|
logger.info("in buyer getOrderCnt req {} listType {}", req, listType);
|
|
|
OrderCntResp resp;
|
|
|
int cnt ;
|
|
|
switch (listType){
|
|
|
case ALL:
|
|
|
cnt = buyerOrderMapper.selectCntByUid(req.getUid());
|
|
|
break;
|
|
|
default:
|
|
|
cnt = 0;
|
|
|
break;
|
|
|
}
|
|
|
resp = OrderCntResp.builder().uid(req.getUid()).cnt(cnt).actor(req.getTabType()).build();
|
|
|
return resp;
|
|
|
}
|
|
|
} |
...
|
...
|
|