From 5177b16eb9450f98fa79e702cc5c1bcfe302e15f Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期二, 16 九月 2025 14:00:05 +0800
Subject: [PATCH] HIS同步服务

---
 ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 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 30ae035..a21a826 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
@@ -14,6 +14,7 @@
 import com.ruoyi.common.utils.RSAPublicKeyExample;
 import com.ruoyi.common.utils.StringUtils;
 import com.ruoyi.common.utils.http.HttpUtils;
+import com.ruoyi.common.utils.sms.smsUtils;
 import com.ruoyi.quartz.service.ICollectHISService;
 import com.smartor.common.LSHospTokenUtil;
 import com.smartor.domain.*;
@@ -95,6 +96,12 @@
 
     @Value("${xhsmsPath}")
     private String xhsmsPath;
+
+    @Value("${xhsmsAccount}")
+    private String xhsmsAccount;
+
+    @Value("${xhsmsPwd}")
+    private String xhsmsPwd;
 
     @Value("${pub_key}")
     private String pub_key;
@@ -549,6 +556,9 @@
                                     if (code.equals("0")) {
                                         isSuccess = "true";
                                     }
+                                }else if (visitHosp == 3) {//甯備竴鍖婚櫌
+                                    String content=sendMagParam.getContent().replace("銆愭柊鍗庡尰闄€��","");
+                                    smsUtils.sendSms(xhsmsPath,xhsmsAccount,xhsmsPwd,sendMagParam.getPhone(),content);
                                 }
                                 //浠诲姟鍙戦�佽褰�
                                 ServiceSubtaskRecord serviceSubtaskRecord = new ServiceSubtaskRecord();
@@ -771,9 +781,8 @@
     public void collectHIS() {
         try {
             // HIS鏁版嵁閲囬泦
-            HnDataGatherVO hnDataGatherVO = new HnDataGatherVO();
             log.info("銆恉ealHisData銆慔IS寮�濮嬮噰闆嗘暟鎹�");
-            ichService.hnDataGather(hnDataGatherVO);
+            ichService.sync();
             log.info("銆恉ealHisData銆慔IS缁撴潫閲囬泦鏁版嵁");
         } catch (Exception e) {
             log.error("銆恉ealHisData銆慔IS鏁版嵁閲囬泦寮傚父", e);

--
Gitblit v1.9.3