From a2101aa52a00ae103a26a950b54f985f46769239 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 23 十一月 2026 17:50:56 +0800
Subject: [PATCH] 【丽水】妇幼随访发送
---
ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 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 5aa2a76..f784099 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
@@ -32,12 +32,14 @@
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysUserService;
import com.ruoyi.message.sms.provider.sltd.ws.MessageSend;
+import com.smartor.common.MchFollowupConstants;
import com.smartor.common.QwenLLMUtil;
import com.smartor.common.SpecificArchiveConstants;
import com.smartor.domain.*;
import com.ruoyi.task.domain.VO.ServiceSubtaskDetailTraceVO;
import com.smartor.mapper.*;
import com.smartor.service.*;
+import com.smartor.service.mch.IMchFollowupSubtaskService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ObjectUtils;
@@ -150,6 +152,9 @@
@Autowired
private IPatSpecificArchiveGenerateService patSpecificArchiveGenerateService;
+
+ @Autowired
+ private IMchFollowupSubtaskService mchFollowupSubtaskService;
@Autowired
private com.ruoyi.task.event.FollowupCompletedEventPublisher followupCompletedEventPublisher;
@@ -1331,6 +1336,15 @@
log.error("銆恠fHandlle銆戝瓙浠诲姟涓虹┖锛岃烦杩囧鐞�");
return;
}
+ // 濡囧辜闅忚锛歴ervice_type=21锛岃蛋濡囧辜涓撶敤鍙戦�侀�昏緫锛屼笉渚濊禆 service_task.preachform_desc
+ if (MchFollowupConstants.SERVICE_TYPE_MCH.equals(serviceSubtask.getServiceType())) {
+ try {
+ mchFollowupSubtaskService.sendSubtask(serviceSubtask);
+ } catch (Exception e) {
+ log.error("銆愬骞奸殢璁裤�憇fHandlle 鍙戦�佸紓甯革紝subid={}", serviceSubtask.getId(), e);
+ }
+ return;
+ }
//杩欓噷闇�瑕佹牴鎹韩浠借瘉鍘婚噸(缁欏井淇″皬绋嬪簭鐨勫浐瀹氫换鍔$敤鐨�)
List<ServiceSubtask> serviceSubtaskListFilter = new ArrayList<>();
ServiceTask ivrTask1 = serviceTaskMapper.selectServiceTaskByTaskid(serviceSubtask.getTaskid());
@@ -2373,4 +2387,19 @@
}
}
+ /**
+ * 濡囧辜闅忚锛氭壂鎻忓凡纭妗f锛屾寜 plannedFollowTime + followupPeriod 鐢熸垚 service_subtask銆�
+ *
+ * <p>瀹為檯鍙戦�佺敱 longTaskSend / compensateTask 璋冪敤 sfHandlle 鐨�
+ * service_type=21 鍒嗘敮瀹屾垚銆�</p>
+ */
+ public void generateMchFollowupSubtask() {
+ try {
+ int generated = mchFollowupSubtaskService.rebuildAll(200);
+ log.info("銆恎enerateMchFollowupSubtask銆戝骞奸殢璁夸换鍔$敓鎴愬畬鎴愶紝鐢熸垚鑺傜偣鏁�={}", generated);
+ } catch (Exception e) {
+ log.error("銆恎enerateMchFollowupSubtask銆戝骞奸殢璁夸换鍔$敓鎴愬け璐�", e);
+ }
+ }
+
}
--
Gitblit v1.9.3