Commit 4aa6f86c authored by jiaorz's avatar jiaorz

添加押金记录客服电话,出行记录查询筛选

parent 95c80475
......@@ -24,6 +24,12 @@
<version>2.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.xxfc.platform</groupId>
<artifactId>xx-activity-api</artifactId>
<version>2.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
......
package com.xxfc.platform.universal.biz;
import com.github.wxiaoqi.security.common.config.rabbit.RabbitConstant;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.activity.config.RabbitActivityConfig;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageBuilder;
import org.springframework.amqp.core.MessageProperties;
......@@ -12,6 +15,8 @@ import org.springframework.transaction.annotation.Transactional;
import java.util.UUID;
import static com.github.wxiaoqi.security.common.config.rabbit.RabbitConstant.INTEGRAL_TOPIC;
@Service
@Slf4j
public class MQServiceBiZ {
......@@ -23,6 +28,12 @@ public class MQServiceBiZ {
public ObjectRestResponse sendMessage(String exchange, String routKey, String json) {
log.info("发送消息到消息队列:exchange = {}, routingKey = {}, json = {}", exchange, routKey, json);
log.info("开始发送消息。。。");
if(StringUtils.isBlank(exchange)) {
exchange = INTEGRAL_TOPIC;
}
if (StringUtils.isBlank(routKey)) {
routKey = RabbitConstant.INTEGRAL_ROUTING_KEY;
}
Message message = MessageBuilder.withBody(json.getBytes())
.setContentType(MessageProperties.CONTENT_TYPE_JSON).setContentEncoding("utf-8")
.setMessageId(UUID.randomUUID() + "").build();
......
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