Authored by wujiexiang

求购数量统计

@@ -3,7 +3,6 @@ package com.yohoufo.order.service; @@ -3,7 +3,6 @@ package com.yohoufo.order.service;
3 import com.yoho.error.ServiceError; 3 import com.yoho.error.ServiceError;
4 import com.yoho.error.exception.ServiceException; 4 import com.yoho.error.exception.ServiceException;
5 import com.yohobuy.ufo.model.order.common.OrderStatus; 5 import com.yohobuy.ufo.model.order.common.OrderStatus;
6 -import com.yohobuy.ufo.model.order.common.TabType;  
7 import com.yohoufo.common.alarm.EventBusPublisher; 6 import com.yohoufo.common.alarm.EventBusPublisher;
8 import com.yohoufo.common.exception.UfoServiceException; 7 import com.yohoufo.common.exception.UfoServiceException;
9 import com.yohoufo.common.utils.DateUtil; 8 import com.yohoufo.common.utils.DateUtil;
@@ -109,8 +108,7 @@ public abstract class AbstractBuyerOrderStateChanger<T extends RequestedStatusCh @@ -109,8 +108,7 @@ public abstract class AbstractBuyerOrderStateChanger<T extends RequestedStatusCh
109 if (doChange(statusChangeBuyerOrder)) { 108 if (doChange(statusChangeBuyerOrder)) {
110 afterChange(statusChangeBuyerOrder); 109 afterChange(statusChangeBuyerOrder);
111 //清理缓存 110 //清理缓存
112 - cacheCleaner.cleanList(buyerOrder.getUid(), TabType.BUY.getValue());  
113 - cacheCleaner.cleanDetail(buyerOrder.getUid(), buyerOrder.getOrderCode(), TabType.BUY); 111 + cacheCleaner.cleanBuyerOrder(buyerOrder.getUid(), buyerOrder.getOrderCode());
114 } else { 112 } else {
115 logger.warn("[{}] change order fail, order status has changed", buyerOrder.getOrderCode()); 113 logger.warn("[{}] change order fail, order status has changed", buyerOrder.getOrderCode());
116 switch (operator) { 114 switch (operator) {
@@ -730,6 +730,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { @@ -730,6 +730,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
730 // 待发货 730 // 待发货
731 // 待收货 731 // 待收货
732 BuyerOrderNums buyerOrderNums = BuyerOrderNums.builder().uid(uid) 732 BuyerOrderNums buyerOrderNums = BuyerOrderNums.builder().uid(uid)
  733 + .bidNums(getValueDefalutZero(buyOrderNumsMap, OrderListType.BID.getStatusQuery()))
733 .waitingPayNum(getValueDefalutZero(buyOrderNumsMap, OrderListType.WAITING_PAY.getStatusQuery())) 734 .waitingPayNum(getValueDefalutZero(buyOrderNumsMap, OrderListType.WAITING_PAY.getStatusQuery()))
734 .waitingSendNums(getValueDefalutZero(buyOrderNumsMap, OrderListType.WAITING_SEND.getStatusQuery())) 735 .waitingSendNums(getValueDefalutZero(buyOrderNumsMap, OrderListType.WAITING_SEND.getStatusQuery()))
735 .waitingDeliveryNums(getValueDefalutZero(buyOrderNumsMap, OrderListType.WAITING_DELIVERY.getStatusQuery())) 736 .waitingDeliveryNums(getValueDefalutZero(buyOrderNumsMap, OrderListType.WAITING_DELIVERY.getStatusQuery()))