...
|
...
|
@@ -3,6 +3,7 @@ package com.yoho.unions.server.mqconsumer; |
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.core.message.YhMessageConsumer;
|
|
|
import com.yoho.core.rabbitmq.YhConsumer;
|
|
|
import com.yoho.unions.common.utils.DateUtil;
|
|
|
import com.yoho.unions.dal.IUserOrdersDAO;
|
|
|
import com.yoho.unions.dal.IUserOrdersRelationDAO;
|
...
|
...
|
@@ -23,11 +24,11 @@ import java.util.Map; |
|
|
* Created by zhouxiang on 2016/11/4.
|
|
|
*/
|
|
|
@Component
|
|
|
public class OrderPushConsumer implements CommonMessageConsumer {
|
|
|
public class OrderPushConsumer implements YhConsumer {
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(OrderPushConsumer.class);
|
|
|
|
|
|
private final static String ORDER_PUSH_TOPIC = "union.order_push";
|
|
|
// private final static String ORDER_PUSH_TOPIC = "union.order_push";
|
|
|
|
|
|
@Autowired
|
|
|
IUserOrdersDAO userOrdersDAO;
|
...
|
...
|
@@ -35,10 +36,10 @@ public class OrderPushConsumer implements CommonMessageConsumer { |
|
|
@Autowired
|
|
|
IUserOrdersRelationDAO userOrdersRelationDAO;
|
|
|
|
|
|
@Override
|
|
|
public String getMessageTopic() {
|
|
|
return ORDER_PUSH_TOPIC;
|
|
|
}
|
|
|
// @Override
|
|
|
// public String getMessageTopic() {
|
|
|
// return ORDER_PUSH_TOPIC;
|
|
|
// }
|
|
|
|
|
|
@Override
|
|
|
public void handleMessage(Object o) {
|
...
|
...
|
|