From 569e8be78cc357147a403daa1af8dfe6dd7d5308 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 18 八月 2026 18:22:10 +0800
Subject: [PATCH] 1.处理药品宣教的问题 2.处理南华满意度的功能 3.处理随访导出的问题 4.处理南华短信的问题

---
 smartor/src/main/java/com/smartor/service/impl/ServiceOutPathServiceImpl.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/smartor/src/main/java/com/smartor/service/impl/ServiceOutPathServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/ServiceOutPathServiceImpl.java
index dc3ff01..a020da7 100644
--- a/smartor/src/main/java/com/smartor/service/impl/ServiceOutPathServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/ServiceOutPathServiceImpl.java
@@ -2,6 +2,7 @@
 
 import com.ruoyi.common.utils.DateUtils;
 import com.ruoyi.common.utils.RSAPublicKeyExample;
+import com.ruoyi.common.utils.StringUtils;
 import com.smartor.domain.ServiceOutPath;
 import com.smartor.domain.ServiceTask;
 import com.smartor.mapper.ServiceOutPathMapper;
@@ -77,8 +78,8 @@
         ServiceTask serviceTask = serviceTaskMapper.selectServiceTaskByTaskid(Long.valueOf(serviceOutPath.getParam1()));
         RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample();
         String taskId = rsaPublicKeyExample.encryptedData(serviceOutPath.getParam1().toString(), pub_key);
-        String patid= rsaPublicKeyExample.encryptedData(serviceOutPath.getParam2().toString(), pub_key);
-        String subid= rsaPublicKeyExample.encryptedData(serviceOutPath.getParam6().toString(), pub_key);
+        String patid = rsaPublicKeyExample.encryptedData(serviceOutPath.getParam2().toString(), pub_key);
+        String subid = rsaPublicKeyExample.encryptedData(serviceOutPath.getParam6().toString(), pub_key);
         Date now = DateUtils.getNowDate();
         ServiceOutPath sop = new ServiceOutPath();
         sop.setParam1(taskId);
@@ -95,7 +96,7 @@
         serviceOutPathMapper.insertServiceOutPath(sop);
         //杞垚16杩涘埗骞跺洖鍐檙adix鍜寀pdateTime
         serviceOutPath.setRadix(String.format("%03X", sop.getId()));
-        serviceOutPath.setUrl(localIP + ":" + req_path + "/wt?p=" + sop.getRadix());
+        serviceOutPath.setUrl(StringUtils.isNotEmpty(req_path) ? localIP + ":" + req_path + "/wt?p=" + sop.getRadix() : localIP + "/wt?p=" + sop.getRadix());
         serviceOutPathMapper.updateServiceOutPath(serviceOutPath);
         return serviceOutPath.getUrl();
     }

--
Gitblit v1.9.3