Commit 83cf37d6 by 阳浪

消息优化

parent daf54b50
package com.yizhi.application.util;
import com.yizhi.assignment.application.vo.MessageRemindVo;
import com.yizhi.core.application.publish.PublicSendMessageClient;
import com.yizhi.core.application.vo.MessageRemindVo;
import com.yizhi.core.application.context.RequestContext;
import com.yizhi.core.application.event.EventWrapper;
import com.yizhi.core.application.publish.CloudEventPublisher;
......@@ -16,7 +17,7 @@ import org.springframework.stereotype.Component;
public class TaskSendMessage {
@Autowired
private CloudEventPublisher cloudEventPublisher;
private PublicSendMessageClient publicSendMessageClient;
@Autowired
private TaskExecutor taskExecutor;
private Logger logger = LoggerFactory.getLogger(TaskSendMessage.class);
......@@ -46,7 +47,7 @@ public class TaskSendMessage {
taskExecutor.asynExecute(new AbstractTaskHandler() {
@Override
public void handle() {
cloudEventPublisher.publish(Constans.MESSAGE_QUEUE, new EventWrapper<MessageRemindVo>(null, vo));
publicSendMessageClient.processBizEvent(new EventWrapper<MessageRemindVo>(null, vo));
}
});
if (taskStatus == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment