fix:优化文档转换组件的消息队列

This commit is contained in:
zhangyanduan
2022-07-06 09:23:47 +08:00
parent 667b3efff4
commit 2b9a977204
2 changed files with 8 additions and 4 deletions
@@ -3,6 +3,7 @@ package com.adc.da.mq;
import com.adc.da.slrs.otConvertMq.dao.OtConvertMqDao;
import com.adc.da.slrs.otConvertMq.entity.OtConvertMq;
import com.adc.da.util.UUIDUtils;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
@@ -69,9 +70,9 @@ public class CreateMQService {
convertInfo.put("standFilePdfId", convert.getPdfId());
convertInfo.put("againNum",convert.getAgainNum());
}
String body = JSONObject.toJSONString(convertInfo);
//发送消息队列
this.rabbitTemplate.convertAndSend("convert-exchange_SQ_GSAR_RELEASE", "convert-key_SQ_GSAR_RELEASE", convertInfo);
this.rabbitTemplate.convertAndSend("convert-exchange_SQ_GSAR_RELEASE", "convert-key_SQ_GSAR_RELEASE", body);
}
}