From bb14a46e456ee3a89ae385559726667acd8af37e Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 05 三月 2025 19:51:37 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/component/RedisMqReceiver.java |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/component/RedisMqReceiver.java b/ruoyi-admin/src/main/java/com/ruoyi/web/component/RedisMqReceiver.java
index 25ed5af..ae1e75b 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/component/RedisMqReceiver.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/component/RedisMqReceiver.java
@@ -15,7 +15,10 @@
 import com.smartor.domain.*;
 import com.smartor.mapper.ServiceSubtaskMapper;
 import com.smartor.mapper.ServiceTaskMapper;
-import com.smartor.service.*;
+import com.smartor.service.IBaseSmsaccountService;
+import com.smartor.service.IServiceOutPathService;
+import com.smartor.service.IServiceSubtaskRecordService;
+import com.smartor.service.ISvyTaskTemplateService;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.collections4.CollectionUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -25,9 +28,6 @@
 import org.springframework.data.redis.listener.RedisMessageListenerContainer;
 import org.springframework.stereotype.Component;
 
-import java.math.BigInteger;
-import java.net.URLEncoder;
-import java.nio.charset.StandardCharsets;
 import java.time.LocalDateTime;
 import java.time.format.DateTimeFormatter;
 import java.util.*;
@@ -211,7 +211,8 @@
                                     list.add(serviceSubtask2.getId().toString());
                                 }
                                 log.error("缂撳瓨涓璫ache-0鐨勫�间负锛歿}", list);
-                                redisCache.setCacheList("cache-0", list);
+//                                redisCache.setCacheListLeft("cache-0", list);
+                                redisCache.setCacheListLeftAndDistinct("cache-0", list);
                             } else {
                                 //闈炵珛鍗冲彂閫�
                                 ServiceSubtaskVO serviceSubtask1 = new ServiceSubtaskVO();
@@ -221,7 +222,8 @@
                                 for (ServiceSubtask serviceSubtask2 : selectServiceSubtaskList1) {
                                     list.add(serviceSubtask2.getId().toString());
                                 }
-                                redisCache.setCacheList(key, list);
+//                                redisCache.setCacheListLeft(key, list);
+                                redisCache.setCacheListLeftAndDistinct(key, list);
                             }
                         } catch (Exception exception) {
                             ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord();
@@ -288,6 +290,7 @@
 
                         try {
                             String patid = rsaPublicKeyExample.encryptedData(serviceSubtask.getPatid().toString(), pub_key);
+                            String subId = rsaPublicKeyExample.encryptedData(serviceSubtask.getId().toString(), pub_key);
                             SendMagParam sendMagParam = new SendMagParam();
                             sendMagParam.setType("4");
                             if (type == 1) {
@@ -295,6 +298,7 @@
                                 ServiceOutPath serviceOutPath = new ServiceOutPath();
                                 serviceOutPath.setParam1(taskId);
                                 serviceOutPath.setParam2(patid);
+                                serviceOutPath.setParam6(subId);
                                 serviceOutPath.setCreateTime(new Date());
                                 iServiceOutPathService.insertServiceOutPath(serviceOutPath);
 //                                sendMagParam.setUrl(ip + ":" + req_path + "/followvisit/particty?param1=" + taskId + "&param2=" + patid + "&param5=false");
@@ -311,6 +315,7 @@
                                 ServiceOutPath serviceOutPath = new ServiceOutPath();
                                 serviceOutPath.setParam1(taskId);
                                 serviceOutPath.setParam2(patid);
+                                serviceOutPath.setParam6(subId);
 //                                serviceOutPath.setParam3(URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString()));
                                 serviceOutPath.setParam3(ivrTask1.getTaskName());
                                 serviceOutPath.setCreateTime(new Date());
@@ -328,6 +333,7 @@
                                 ServiceOutPath serviceOutPath = new ServiceOutPath();
                                 serviceOutPath.setParam1(taskId);
                                 serviceOutPath.setParam2(patid);
+                                serviceOutPath.setParam6(subId);
 //                                serviceOutPath.setParam3(URLEncoder.encode(ivrTask1.getTaskName(), StandardCharsets.UTF_8.toString()));
                                 serviceOutPath.setParam3(ivrTask1.getTaskName());
                                 serviceOutPath.setCreateTime(new Date());

--
Gitblit v1.9.3