| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 任务创建对象 |
| | |
| | | * @author ruoyi |
| | | * @date 2024-01-15 |
| | | */ |
| | | public class TaskCreateVO { |
| | | |
| | | @Data |
| | | public class TaskCreateVO implements Serializable { |
| | | |
| | | private String taskCode; |
| | | /** 任务类型 */ |
| | | private String taskType; |
| | | |
| | |
| | | /** 计划结束时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date plannedEndTime; |
| | | |
| | | /** 实际开始时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date actualStartTime; |
| | | /** 实际结束时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date actualEndTime; |
| | | |
| | | /** 执行人ID */ |
| | | private Long assigneeId; |
| | |
| | | /** 福祉车公里数 */ |
| | | private BigDecimal distance; |
| | | |
| | | /** 单据类型ID(对应SQL Server的dictionary表vID) */ |
| | | private String documentTypeId; |
| | | |
| | | /** 任务类型ID(对应SQL Server的dictionary表vID) */ |
| | | private String taskTypeId; |
| | | |
| | | /** 车辆ID列表 */ |
| | | private List<Long> vehicleIds; |
| | | |
| | | /** 执行人员ID列表 */ |
| | | private List<Long> assigneeIds; |
| | | |
| | | /** 执行人员详细信息列表(包含角色类型) */ |
| | | private List<AssigneeInfo> assignees; |
| | | |
| | | /** 归属部门ID */ |
| | | private Long deptId; |
| | | |
| | | /** 病情ID列表(ICD-10疾病ID列表,用于同步调度单的OrdICD_ID参数) */ |
| | | private List<Long> diseaseIds; |
| | | |
| | | private Date createTime; |
| | | |
| | | // 执行人员信息内部类 |
| | | public static class AssigneeInfo { |
| | | /** 用户ID */ |
| | | private Long userId; |
| | | |
| | | /** 用户姓名 */ |
| | | private String userName; |
| | | |
| | | /** 用户类型:driver-司机,doctor-医生,nurse-护士 */ |
| | | private String userType; |
| | | |
| | | public Long getUserId() { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Long userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getUserName() { |
| | | return userName; |
| | | } |
| | | |
| | | public void setUserName(String userName) { |
| | | this.userName = userName; |
| | | } |
| | | |
| | | public String getUserType() { |
| | | return userType; |
| | | } |
| | | |
| | | public void setUserType(String userType) { |
| | | this.userType = userType; |
| | | } |
| | | } |
| | | |
| | | // 患者信息内部类 |
| | | public static class PatientInfo { |
| | |
| | | |
| | | // 医院信息内部类 |
| | | public static class HospitalInfo { |
| | | private Long id; // 医院ID(关联hosp_data表的HospID) |
| | | private String name; |
| | | private String department; |
| | | private String departmentId; // 科室ID(对应SQL Server dictionary表的vID) |
| | | private String bedNumber; |
| | | private String address; |
| | | private BigDecimal longitude; |
| | | private BigDecimal latitude; |
| | | |
| | | // getters and setters |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | |
| | | |
| | | public void setDepartment(String department) { |
| | | this.department = department; |
| | | } |
| | | |
| | | public String getDepartmentId() { |
| | | return departmentId; |
| | | } |
| | | |
| | | public void setDepartmentId(String departmentId) { |
| | | this.departmentId = departmentId; |
| | | } |
| | | |
| | | public String getBedNumber() { |
| | |
| | | public void setDistance(BigDecimal distance) { |
| | | this.distance = distance; |
| | | } |
| | | |
| | | public String getDocumentTypeId() { |
| | | return documentTypeId; |
| | | } |
| | | |
| | | public void setDocumentTypeId(String documentTypeId) { |
| | | this.documentTypeId = documentTypeId; |
| | | } |
| | | |
| | | public String getTaskTypeId() { |
| | | return taskTypeId; |
| | | } |
| | | |
| | | public void setTaskTypeId(String taskTypeId) { |
| | | this.taskTypeId = taskTypeId; |
| | | } |
| | | |
| | | public List<Long> getAssigneeIds() { |
| | | return assigneeIds; |
| | | } |
| | | |
| | | public void setAssigneeIds(List<Long> assigneeIds) { |
| | | this.assigneeIds = assigneeIds; |
| | | } |
| | | |
| | | public List<AssigneeInfo> getAssignees() { |
| | | return assignees; |
| | | } |
| | | |
| | | public void setAssignees(List<AssigneeInfo> assignees) { |
| | | this.assignees = assignees; |
| | | } |
| | | |
| | | public Long getDeptId() { |
| | | return deptId; |
| | | } |
| | | |
| | | public void setDeptId(Long deptId) { |
| | | this.deptId = deptId; |
| | | } |
| | | |
| | | public List<Long> getDiseaseIds() { |
| | | return diseaseIds; |
| | | } |
| | | |
| | | public void setDiseaseIds(List<Long> diseaseIds) { |
| | | this.diseaseIds = diseaseIds; |
| | | } |
| | | } |