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 | 22 +++++++++++++++++----- 1 files changed, 17 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 938a6c2..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,8 +14,8 @@ import com.ruoyi.common.utils.RSAPublicKeyExample; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.http.HttpUtils; -import com.ruoyi.quartz.service.ICollectHISMapperService; -import com.ruoyi.quartz.service.impl.CollectHISMapperServiceImpl; +import com.ruoyi.common.utils.sms.smsUtils; +import com.ruoyi.quartz.service.ICollectHISService; import com.smartor.common.LSHospTokenUtil; import com.smartor.domain.*; import com.smartor.mapper.HeLibraryMapper; @@ -87,11 +87,21 @@ @Autowired private HeLibraryMapper heLibraryMapper; + @Autowired + private ICollectHISService ichService; + + @Value("${localIP}") private String localIP; @Value("${xhsmsPath}") private String xhsmsPath; + + @Value("${xhsmsAccount}") + private String xhsmsAccount; + + @Value("${xhsmsPwd}") + private String xhsmsPwd; @Value("${pub_key}") private String pub_key; @@ -134,7 +144,7 @@ IXHGatherPatArchiveService ixhGatherPatArchiveService; @Autowired - ICollectHISMapperService icollectHis; + ICollectHISService icollectHis; @Value("${appid}") @@ -546,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(); @@ -768,9 +781,8 @@ public void collectHIS() { try { // HIS鏁版嵁閲囬泦 - HnDataGatherVO hnDataGatherVO = new HnDataGatherVO(); log.info("銆恉ealHisData銆慔IS寮�濮嬮噰闆嗘暟鎹�"); - ihnGatherPatArchiveService.hnDataGather(hnDataGatherVO); + ichService.sync(); log.info("銆恉ealHisData銆慔IS缁撴潫閲囬泦鏁版嵁"); } catch (Exception e) { log.error("銆恉ealHisData銆慔IS鏁版嵁閲囬泦寮傚父", e); -- Gitblit v1.9.3