陈昶聿
2 天以前 67d0eef6ef56713345e03afdfd7e5badf4d4ad3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.smartor.service.mch;
 
import com.ruoyi.task.domain.ServiceSubtask;
 
/**
 * 妇幼随访任务生成/发送服务。
 *
 * <p>妇幼节点不再落独立计划表,而是按档案的 plannedFollowTime + followupPeriod
 * 生成 service_subtask,由 sfHandlle 的妇幼分支发送。</p>
 */
public interface IMchFollowupSubtaskService {
 
    /**
     * 根据档案详情重建妇幼随访 subtask。
     *
     * @return 新生成的节点数量
     */
    int rebuildForArchive(String archiveType, Long archiveId, Long archiveDetailId);
 
    /**
     * 补偿扫描:为已有妇幼档案补建 subtask。
     */
    int rebuildAll(int limit);
 
    /**
     * 发送一条妇幼 subtask(由 sfHandlle 调用)。
     */
    void sendSubtask(ServiceSubtask subtask);
}