|
@@ -10,6 +10,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.boot.starter.rabbitmq.core.BaseRabbiMqHandler;
|
|
|
import org.jeecg.boot.starter.rabbitmq.listenter.MqListener;
|
|
|
import org.jeecg.common.annotation.RabbitComponent;
|
|
|
+import org.jeecg.common.util.FastJsonUtil;
|
|
|
import org.jeecg.modules.adweb.common.service.FeishuService;
|
|
|
import org.jeecg.modules.adweb.common.util.AdwebRedisUtil;
|
|
|
import org.jeecg.modules.adweb.enquiry.dto.EnquiryDTO;
|
|
@@ -74,6 +75,8 @@ public class EnquiryReceiver extends BaseRabbiMqHandler<List<EnquiryDTO>> {
|
|
|
// 消息内容唯一性判断
|
|
|
List<String> enquiryUniqueIds =
|
|
|
(List<String>) adwebRedisUtil.get(EnquiryUniqueKey + enquiry.getSiteHost());
|
|
|
+
|
|
|
+ log.info("询盘唯一性存储条件:{}", FastJsonUtil.toJSONString(enquiryUniqueIds));
|
|
|
// 如果该消息内容原数据中已存在,则将该重复消息踢出队列
|
|
|
if (enquiryUniqueIds.contains(enquiry.getSiteHost() + enquiry.getRecordId())) {
|
|
|
log.info("该询盘已经消费过,从队列中清除:{}", enquiry.getRecordId());
|