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;
|
}
|
}
|