Authored by Ge

解决上报空指针问题

... ... @@ -16,6 +16,7 @@ import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
... ... @@ -29,7 +30,7 @@ import java.util.Map;
* Created by zhouxiang on 2016/11/7.
*/
@Service
public class OrderPushServiceImpl implements IOrderPushService{
public class OrderPushServiceImpl implements IOrderPushService,ApplicationEventPublisherAware {
@Autowired
IUnionOrderPushDAO unionOrderPushDAO;
... ... @@ -172,5 +173,10 @@ public class OrderPushServiceImpl implements IOrderPushService{
userOrdersDAO.batchUpdatePush(successCodes);
}
}
@Override
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
this.publisher = applicationEventPublisher;
}
}
... ...