liusheng
5 天以前 cc479e6a056785103996cc7ea67dbd5faa3e800e
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
package com.ruoyi.common.core.service.dto;
 
import java.io.Serializable;
 
/**
 * 已发布的「长期随访任务」快照({@link com.ruoyi.common.core.service.VisitTaskCreateApi} 的返回值)。
 * <p>
 * 来源:原 {@code ServiceTaskMapper.selectServiceTaskList(new ServiceTask(taskid, sendState=2))}
 * 取到的第一条记录(见迁移前 {@code PatMedInhospServiceImpl#writeInSubTask} L686-728)。
 * <p>
 * ⚠️ 字段是<b>按随访组装实际用到的</b>倒推出来的,不是 {@code ServiceTask} 的全量 62 个字段。
 * 迁移时若发现漏字段,必须补在这里并同步改过渡实现 —— 漏字段会导致
 * {@code boxedServiceSubtask} 里对应的 setter 静默不生效(不报错,但线上行为变了)。
 *
 * @see com.ruoyi.common.core.service.VisitTaskCreateApi#findPublishedLongTask(Long)
 */
public class VisitLongTaskDto implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /** 任务ID */
    private Long taskid;
 
    /** 任务名称 */
    private String taskName;
 
    /** 任务描述(落库到 {@code service_subtask.task_desc}) */
    private String taskDesc;
 
    /** 任务类型("3" = 通知类,决定 visitTime 是否提前 N 天,见迁移前 L1188-1203) */
    private String type;
 
    /** 服务类型("2" 出院随访 / "13" 专病随访 / "17" 宣教关怀(入院) / "18" 入院随访 等) */
    private String serviceType;
 
    /** 问卷模板ID */
    private Long templateid;
 
    /** 问卷模板名称 */
    private String templatename;
 
    /** 语音模板ID(原字段是 String,迁移前用 Long.valueOf() 转换) */
    private String libtemplateid;
 
    /** 语音模板名称(落库到 {@code service_subtask.libtemplatename}) */
    private String libtemplatename;
 
    /** 推送/发送日偏移天数(原 sendDay,缺省按 1 处理) */
    private Long sendDay;
 
    /** 执行方式(原 preachform) */
    private String preachform;
 
    /** 执行方式明细 JSON(原 preachformDesc,由 addServiceSubtaskPreachform 解析) */
    private String preachformDesc;
 
    /** 机构ID */
    private String orgid;
 
    /** 院区ID */
    private String campusid;
 
    /** 宣教模板(原 preachform 的同义字段,组装时也在用) */
    private String hosType;
 
    // ------------------------------------------------------------------
    // 以下 6 个是 DtoConversionUtils.sourceToTarget 拷贝、且原实现的
    // insertServiceSubtask 会落库的列。补齐它们之前,
    // 新链路里这些列会静默落空(XML 是 <if test="xxx != null">)。
    // ------------------------------------------------------------------
 
    /** GUID(原 serviceTask.guid → service_subtask.guid) */
    private String guid;
 
    /** pid(原 serviceTask.pid 是 Integer,目标 ServiceSubtask.pid 是 Long —— 拷贝时做了转换) */
    private Integer pid;
 
    /** 发送类型(原 serviceTask.sendType 是 Long,目标 ServiceSubtask.sendType 是 String) */
    private Long sendType;
 
    /** 是否已上传(原 serviceTask.isupload → service_subtask.isupload) */
    private Long isupload;
 
    /** 文本参数(原 serviceTask.textParam → service_subtask.text_param) */
    private String textParam;
 
    /** 上传时间(原 serviceTask.uploadTime → service_subtask.upload_time) */
    private java.util.Date uploadTime;
 
    /** 更新人(原 updateBy,迁移前多处 setUpdateBy(serviceTask.getUpdateBy())) */
    private String updateBy;
 
    /** 创建人(原 createBy) */
    private String createBy;
 
    public Long getTaskid() {
        return taskid;
    }
 
    public void setTaskid(Long taskid) {
        this.taskid = taskid;
    }
 
    public String getTaskName() {
        return taskName;
    }
 
    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }
 
    public String getTaskDesc() {
        return taskDesc;
    }
 
    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public String getServiceType() {
        return serviceType;
    }
 
    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }
 
    public Long getTemplateid() {
        return templateid;
    }
 
    public void setTemplateid(Long templateid) {
        this.templateid = templateid;
    }
 
    public String getTemplatename() {
        return templatename;
    }
 
    public void setTemplatename(String templatename) {
        this.templatename = templatename;
    }
 
    public String getLibtemplateid() {
        return libtemplateid;
    }
 
    public void setLibtemplateid(String libtemplateid) {
        this.libtemplateid = libtemplateid;
    }
 
    public String getLibtemplatename() {
        return libtemplatename;
    }
 
    public void setLibtemplatename(String libtemplatename) {
        this.libtemplatename = libtemplatename;
    }
 
    public Long getSendDay() {
        return sendDay;
    }
 
    public void setSendDay(Long sendDay) {
        this.sendDay = sendDay;
    }
 
    public String getPreachform() {
        return preachform;
    }
 
    public void setPreachform(String preachform) {
        this.preachform = preachform;
    }
 
    public String getPreachformDesc() {
        return preachformDesc;
    }
 
    public void setPreachformDesc(String preachformDesc) {
        this.preachformDesc = preachformDesc;
    }
 
    public String getOrgid() {
        return orgid;
    }
 
    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }
 
    public String getCampusid() {
        return campusid;
    }
 
    public void setCampusid(String campusid) {
        this.campusid = campusid;
    }
 
    public String getHosType() {
        return hosType;
    }
 
    public void setHosType(String hosType) {
        this.hosType = hosType;
    }
 
    public String getGuid() {
        return guid;
    }
 
    public void setGuid(String guid) {
        this.guid = guid;
    }
 
    public Integer getPid() {
        return pid;
    }
 
    public void setPid(Integer pid) {
        this.pid = pid;
    }
 
    public Long getSendType() {
        return sendType;
    }
 
    public void setSendType(Long sendType) {
        this.sendType = sendType;
    }
 
    public Long getIsupload() {
        return isupload;
    }
 
    public void setIsupload(Long isupload) {
        this.isupload = isupload;
    }
 
    public String getTextParam() {
        return textParam;
    }
 
    public void setTextParam(String textParam) {
        this.textParam = textParam;
    }
 
    public java.util.Date getUploadTime() {
        return uploadTime;
    }
 
    public void setUploadTime(java.util.Date uploadTime) {
        this.uploadTime = uploadTime;
    }
 
    public String getUpdateBy() {
        return updateBy;
    }
 
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
 
    public String getCreateBy() {
        return createBy;
    }
 
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
}