|
|
|
@@ -30,17 +30,17 @@ public class RabbitMqMessageProducer implements MqBaseProducer { |
|
|
|
private WxMsgRecordMapper wxMsgRecordMapper; |
|
|
|
@Autowired |
|
|
|
private WxMsgRecordService wxMsgRecordService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void confirm(CorrelationData correlationData, boolean b, String s) { |
|
|
|
log.info("------correlationData"+correlationData.toString()); |
|
|
|
System.out.println(); |
|
|
|
if(b){ |
|
|
|
System.out.println(); |
|
|
|
}else{ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// |
|
|
|
// @Override |
|
|
|
// public void confirm(CorrelationData correlationData, boolean b, String s) { |
|
|
|
// log.info("------correlationData"+correlationData.toString()); |
|
|
|
// System.out.println(); |
|
|
|
// if(b){ |
|
|
|
// System.out.println(); |
|
|
|
// }else{ |
|
|
|
// |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
@Override |
|
|
|
public void sendMessage(BaseMsg data, String topic, String tags, String keys) { |
|
|
|
@@ -48,8 +48,8 @@ public class RabbitMqMessageProducer implements MqBaseProducer { |
|
|
|
data.setUuid(UUID.randomUUID().toString()); |
|
|
|
wxMsgRecordService.save(data); |
|
|
|
|
|
|
|
CorrelationData correlationData = new CorrelationData("16746324"); |
|
|
|
rabbitTemplate.convertAndSend(topic, JsonUtil.obj2Json(data),correlationData); |
|
|
|
//CorrelationData correlationData = new CorrelationData("16746324"); |
|
|
|
rabbitTemplate.convertAndSend(topic, JsonUtil.obj2Json(data)); |
|
|
|
|
|
|
|
// data.setMsgStatus(EnumMsgRecordStatus.SEND_SUCC.getCode()); |
|
|
|
// wxMsgRecordMapper.update(data); |
|
|
|
|