From c3117a0c5c7b2b69c56cfc50fe5c199c2c2276c1 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期五, 15 五月 2026 13:50:45 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java
index 0cfa4c9..13268fc 100644
--- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java
+++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java
@@ -6,6 +6,7 @@
 import com.fasterxml.jackson.databind.JsonNode;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.gson.Gson;
+import com.ruoyi.common.core.domain.entity.SysDept;
 import com.ruoyi.common.core.redis.RedisCache;
 import com.ruoyi.common.dx.MessageSend;
 import com.ruoyi.common.enums.MsgLSEnum;
@@ -19,6 +20,7 @@
 import com.ruoyi.quartz.util.CreateDataTable;
 import com.ruoyi.system.domain.SysConfig;
 import com.ruoyi.system.service.ISysConfigService;
+import com.ruoyi.system.service.ISysDeptService;
 import com.smartor.common.LSHospTokenUtil;
 import com.smartor.common.MtSubmitSmUtil;
 import com.smartor.domain.*;
@@ -135,6 +137,8 @@
     @Autowired
     IPatArchiveService patArchiveService;
 
+    @Autowired
+    ISysDeptService sysDeptService;
 
     @Autowired
     IPatMedOuthospService patMedOuthospService;
@@ -865,12 +869,24 @@
                         }
                     } else if (active.equals("hzszlyy")) {//甯備竴鍖婚櫌
                         String content = sendMagParam.getContent().replace("銆愭柊鍗庡尰闄€��", "");
-                        String result = smsUtils.sendSms(xhsmsPath, xhsmsAccount, xhsmsPwd, sendMagParam.getPhone(), content);
-                        //杩欓噷闇�瑕佹牴鎹畆esult杩斿洖鐨勫�煎幓鍒ゆ柇锛屾槸鍚︽垚鍔燂紝鐒跺悗灏嗗�艰祴鍊肩粰isSuccess
-                        if (StringUtils.isNotEmpty(result) && result.contains("澶勭悊鎴愬姛")) {
-                            isSuccess = "true";
-                        }
 
+                        SysDept sysDeptVo = new SysDept();
+                        List<SysDept> sysDepts = sysDeptService.selectDeptList(sysDeptVo);
+                        SysDept sysDept = CollectionUtils.isNotEmpty(sysDepts) ? sysDepts.get(0) : new SysDept();
+                        String campusid = ObjectUtils.isNotEmpty(sysDept) ? sysDept.getCampusid() : "2";
+                        if("1".equals(campusid)){
+                            String result = smsUtils.sendSms(xhsmsPath, xhsmsAccount, xhsmsPwd, sendMagParam.getPhone(), content);
+                            //杩欓噷闇�瑕佹牴鎹畆esult杩斿洖鐨勫�煎幓鍒ゆ柇锛屾槸鍚︽垚鍔燂紝鐒跺悗灏嗗�艰祴鍊肩粰isSuccess
+                            if (StringUtils.isNotEmpty(result) && result.contains("澶勭悊鎴愬姛")) {
+                                isSuccess = "true";
+                            }
+                        }else {
+                            String result = smsUtils.sendSms(xhsmsPath, xhsmsAccount, xhsmsPwd, sendMagParam.getPhone(), content);
+                            //杩欓噷闇�瑕佹牴鎹畆esult杩斿洖鐨勫�煎幓鍒ゆ柇锛屾槸鍚︽垚鍔燂紝鐒跺悗灏嗗�艰祴鍊肩粰isSuccess
+                            if (StringUtils.isNotEmpty(result) && result.contains("澶勭悊鎴愬姛")) {
+                                isSuccess = "true";
+                            }
+                        }
                     }
                     //浠诲姟鍙戦�佽褰�
                     ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord();

--
Gitblit v1.9.3