Showing
1 changed file
with
7 additions
and
1 deletions
@@ -16,6 +16,7 @@ import org.apache.commons.lang.StringUtils; | @@ -16,6 +16,7 @@ import org.apache.commons.lang.StringUtils; | ||
16 | import org.apache.commons.lang3.tuple.Pair; | 16 | import org.apache.commons.lang3.tuple.Pair; |
17 | import org.springframework.beans.factory.annotation.Autowired; | 17 | import org.springframework.beans.factory.annotation.Autowired; |
18 | import org.springframework.context.ApplicationEventPublisher; | 18 | import org.springframework.context.ApplicationEventPublisher; |
19 | +import org.springframework.context.ApplicationEventPublisherAware; | ||
19 | import org.springframework.stereotype.Service; | 20 | import org.springframework.stereotype.Service; |
20 | import org.springframework.util.CollectionUtils; | 21 | import org.springframework.util.CollectionUtils; |
21 | 22 | ||
@@ -29,7 +30,7 @@ import java.util.Map; | @@ -29,7 +30,7 @@ import java.util.Map; | ||
29 | * Created by zhouxiang on 2016/11/7. | 30 | * Created by zhouxiang on 2016/11/7. |
30 | */ | 31 | */ |
31 | @Service | 32 | @Service |
32 | -public class OrderPushServiceImpl implements IOrderPushService{ | 33 | +public class OrderPushServiceImpl implements IOrderPushService,ApplicationEventPublisherAware { |
33 | 34 | ||
34 | @Autowired | 35 | @Autowired |
35 | IUnionOrderPushDAO unionOrderPushDAO; | 36 | IUnionOrderPushDAO unionOrderPushDAO; |
@@ -172,5 +173,10 @@ public class OrderPushServiceImpl implements IOrderPushService{ | @@ -172,5 +173,10 @@ public class OrderPushServiceImpl implements IOrderPushService{ | ||
172 | userOrdersDAO.batchUpdatePush(successCodes); | 173 | userOrdersDAO.batchUpdatePush(successCodes); |
173 | } | 174 | } |
174 | } | 175 | } |
176 | + | ||
177 | + @Override | ||
178 | + public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) { | ||
179 | + this.publisher = applicationEventPublisher; | ||
180 | + } | ||
175 | } | 181 | } |
176 | 182 |
-
Please register or login to post a comment