Authored by wujiexiang

退出入驻事件处理

... ... @@ -3,9 +3,7 @@ package com.yohoufo.order.service.handler;
import com.google.common.eventbus.Subscribe;
import com.yoho.core.dal.datasource.annotation.Database;
import com.yohobuy.ufo.model.order.common.EntrySellerType;
import com.yohoufo.common.alarm.EventBusPublisher;
import com.yohoufo.common.alarm.IEventHandler;
import com.yohoufo.common.alarm.SmsAlarmEvent;
import com.yohoufo.common.utils.DateUtil;
import com.yohoufo.dal.order.model.SellerOrderStatsResult;
import com.yohoufo.order.event.SellerEnterTypeChangeEvent;
... ... @@ -66,7 +64,7 @@ public class SellerEnterTypeChangeEventHandler implements IEventHandler<SellerEn
case QUIT:
if (storedSellerService.isStoredSeller(sellerUid)) {
logger.warn("[{}] is stored seller yet,can't handle quit event", sellerUid);
EventBusPublisher.publishEvent(new SmsAlarmEvent("seller.enterQuitEvent", "handle_exception", "seller(" + sellerUid +") is stored seller yet"));
return false;
} else {
//退出入驻,需要更新当前周期,以及下个周期的统计数据
handleQuitEvent(sellerUid, entrySellerType);
... ...