Authored by wujiexiang

求购数量统计

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