|
@@ -39,14 +39,15 @@ public class RabbitMqListener {
|
|
|
// concurrency = "${maxThread.modeling.modeling-pre}"
|
|
|
)
|
|
|
public void buildScenePreHandler(Channel channel, Message message) throws Exception {
|
|
|
- String correlationId = message.getMessageProperties().getCorrelationId();
|
|
|
- String msg = new String(message.getBody(), StandardCharsets.UTF_8);
|
|
|
- log.info("场景升级开始,队列名:{},id:{},消息体:{}", upgradeToV4, correlationId, msg);
|
|
|
- long sceneProId = Long.parseLong(msg);
|
|
|
- //迁移数据
|
|
|
- sceneUpgradeToV4Service.upgrade(sceneProId);
|
|
|
- log.info("场景升级结束,队列名:{},id:{}", upgradeToV4, correlationId);
|
|
|
- channel.basicAck(message.getMessageProperties().getDeliveryTag(), false);
|
|
|
+ Object correlation = message.getMessageProperties().getHeader("spring_returned_message_correlation");
|
|
|
+ String correlationId = (String) correlation;
|
|
|
+ String msg = new String(message.getBody(), StandardCharsets.UTF_8);
|
|
|
+ log.info("场景升级开始,队列名:{},id:{},消息体:{}", upgradeToV4, correlationId, msg);
|
|
|
+ long sceneProId = Long.parseLong(msg);
|
|
|
+ //迁移数据
|
|
|
+ sceneUpgradeToV4Service.upgrade(sceneProId);
|
|
|
+ log.info("场景升级结束,队列名:{},id:{}", upgradeToV4, correlationId);
|
|
|
+ channel.basicAck(message.getMessageProperties().getDeliveryTag(), false);
|
|
|
}
|
|
|
|
|
|
|