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
|
*/
|
@Data
|
public class TaskCreateVO implements Serializable {
|
|
private String taskCode;
|
/** 任务类型 */
|
private String taskType;
|
|
/** 任务描述 */
|
private String taskDescription;
|
|
/** 出发地址 */
|
private String departureAddress;
|
|
/** 目的地址 */
|
private String destinationAddress;
|
|
/** 计划开始时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date plannedStartTime;
|
|
/** 计划结束时间 */
|
@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 String remark;
|
|
/** 出发地经度 */
|
private BigDecimal departureLongitude;
|
|
/** 出发地纬度 */
|
private BigDecimal departureLatitude;
|
|
/** 目的地经度 */
|
private BigDecimal destinationLongitude;
|
|
/** 目的地纬度 */
|
private BigDecimal destinationLatitude;
|
|
/** 预计公里数 */
|
private BigDecimal estimatedDistance;
|
|
/** 转运时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date transferTime;
|
|
/** 患者信息 */
|
private PatientInfo patient;
|
|
/** 转出医院信息 */
|
private HospitalInfo hospitalOut;
|
|
/** 转入医院信息 */
|
private HospitalInfo hospitalIn;
|
|
|
|
/** 成交价 */
|
private BigDecimal price;
|
|
/** 服务时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date serviceTime;
|
|
/** 乘客信息 */
|
private PassengerInfo passenger;
|
|
/** 起始地址 */
|
private String startAddress;
|
|
/** 结束地址 */
|
private String endAddress;
|
|
/** 福祉车公里数 */
|
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 String legacyDispatchOrdNo;
|
|
/** 旧系统服务通知时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date legacyServiceNsTime;
|
|
/** 旧系统调度通知时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date legacyDispatchNsTime;
|
|
/** 旧系统调度单分类 */
|
private String legacyDispatchOrdClass;
|
|
/** 旧系统服务单分类 */
|
private String legacyServiceOrdClass;
|
|
private Date createTime;
|
|
private String taskStatus;
|
|
// 执行人员信息内部类
|
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 {
|
private String contact;
|
private String phone;
|
private String name;
|
private String gender;
|
private String idCard;
|
private String condition;
|
|
// getters and setters
|
public String getContact() {
|
return contact;
|
}
|
|
public void setContact(String contact) {
|
this.contact = contact;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getGender() {
|
return gender;
|
}
|
|
public void setGender(String gender) {
|
this.gender = gender;
|
}
|
|
public String getIdCard() {
|
return idCard;
|
}
|
|
public void setIdCard(String idCard) {
|
this.idCard = idCard;
|
}
|
|
public String getCondition() {
|
return condition;
|
}
|
|
public void setCondition(String condition) {
|
this.condition = condition;
|
}
|
}
|
|
// 医院信息内部类
|
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 setName(String name) {
|
this.name = name;
|
}
|
|
public String getDepartment() {
|
return department;
|
}
|
|
public void setDepartment(String department) {
|
this.department = department;
|
}
|
|
public String getDepartmentId() {
|
return departmentId;
|
}
|
|
public void setDepartmentId(String departmentId) {
|
this.departmentId = departmentId;
|
}
|
|
public String getBedNumber() {
|
return bedNumber;
|
}
|
|
public void setBedNumber(String bedNumber) {
|
this.bedNumber = bedNumber;
|
}
|
|
public String getAddress() {
|
return address;
|
}
|
|
public void setAddress(String address) {
|
this.address = address;
|
}
|
|
public BigDecimal getLongitude() {
|
return longitude;
|
}
|
|
public void setLongitude(BigDecimal longitude) {
|
this.longitude = longitude;
|
}
|
|
public BigDecimal getLatitude() {
|
return latitude;
|
}
|
|
public void setLatitude(BigDecimal latitude) {
|
this.latitude = latitude;
|
}
|
}
|
|
// 乘客信息内部类
|
public static class PassengerInfo {
|
private String contact;
|
private String phone;
|
|
// getters and setters
|
public String getContact() {
|
return contact;
|
}
|
|
public void setContact(String contact) {
|
this.contact = contact;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
}
|
|
public String getTaskType() {
|
return taskType;
|
}
|
|
public void setTaskType(String taskType) {
|
this.taskType = taskType;
|
}
|
|
public String getTaskDescription() {
|
return taskDescription;
|
}
|
|
public void setTaskDescription(String taskDescription) {
|
this.taskDescription = taskDescription;
|
}
|
|
public String getDepartureAddress() {
|
return departureAddress;
|
}
|
|
public void setDepartureAddress(String departureAddress) {
|
this.departureAddress = departureAddress;
|
}
|
|
public String getDestinationAddress() {
|
return destinationAddress;
|
}
|
|
public void setDestinationAddress(String destinationAddress) {
|
this.destinationAddress = destinationAddress;
|
}
|
|
public Date getPlannedStartTime() {
|
return plannedStartTime;
|
}
|
|
public void setPlannedStartTime(Date plannedStartTime) {
|
this.plannedStartTime = plannedStartTime;
|
}
|
|
public Date getPlannedEndTime() {
|
return plannedEndTime;
|
}
|
|
public void setPlannedEndTime(Date plannedEndTime) {
|
this.plannedEndTime = plannedEndTime;
|
}
|
|
public Long getAssigneeId() {
|
return assigneeId;
|
}
|
|
public void setAssigneeId(Long assigneeId) {
|
this.assigneeId = assigneeId;
|
}
|
|
public String getRemark() {
|
return remark;
|
}
|
|
public void setRemark(String remark) {
|
this.remark = remark;
|
}
|
|
public BigDecimal getDepartureLongitude() {
|
return departureLongitude;
|
}
|
|
public void setDepartureLongitude(BigDecimal departureLongitude) {
|
this.departureLongitude = departureLongitude;
|
}
|
|
public BigDecimal getDepartureLatitude() {
|
return departureLatitude;
|
}
|
|
public void setDepartureLatitude(BigDecimal departureLatitude) {
|
this.departureLatitude = departureLatitude;
|
}
|
|
public BigDecimal getDestinationLongitude() {
|
return destinationLongitude;
|
}
|
|
public void setDestinationLongitude(BigDecimal destinationLongitude) {
|
this.destinationLongitude = destinationLongitude;
|
}
|
|
public BigDecimal getDestinationLatitude() {
|
return destinationLatitude;
|
}
|
|
public void setDestinationLatitude(BigDecimal destinationLatitude) {
|
this.destinationLatitude = destinationLatitude;
|
}
|
|
public BigDecimal getEstimatedDistance() {
|
return estimatedDistance;
|
}
|
|
public void setEstimatedDistance(BigDecimal estimatedDistance) {
|
this.estimatedDistance = estimatedDistance;
|
}
|
|
public Date getTransferTime() {
|
return transferTime;
|
}
|
|
public void setTransferTime(Date transferTime) {
|
this.transferTime = transferTime;
|
}
|
|
public PatientInfo getPatient() {
|
return patient;
|
}
|
|
public void setPatient(PatientInfo patient) {
|
this.patient = patient;
|
}
|
|
public HospitalInfo getHospitalOut() {
|
return hospitalOut;
|
}
|
|
public void setHospitalOut(HospitalInfo hospitalOut) {
|
this.hospitalOut = hospitalOut;
|
}
|
|
public HospitalInfo getHospitalIn() {
|
return hospitalIn;
|
}
|
|
public void setHospitalIn(HospitalInfo hospitalIn) {
|
this.hospitalIn = hospitalIn;
|
}
|
|
|
public BigDecimal getPrice() {
|
return price;
|
}
|
|
public void setPrice(BigDecimal price) {
|
this.price = price;
|
}
|
|
public Date getServiceTime() {
|
return serviceTime;
|
}
|
|
public void setServiceTime(Date serviceTime) {
|
this.serviceTime = serviceTime;
|
}
|
|
public PassengerInfo getPassenger() {
|
return passenger;
|
}
|
|
public void setPassenger(PassengerInfo passenger) {
|
this.passenger = passenger;
|
}
|
|
public String getStartAddress() {
|
return startAddress;
|
}
|
|
public void setStartAddress(String startAddress) {
|
this.startAddress = startAddress;
|
}
|
|
public String getEndAddress() {
|
return endAddress;
|
}
|
|
public void setEndAddress(String endAddress) {
|
this.endAddress = endAddress;
|
}
|
|
public List<Long> getVehicleIds() {
|
return vehicleIds;
|
}
|
|
public void setVehicleIds(List<Long> vehicleIds) {
|
this.vehicleIds = vehicleIds;
|
}
|
|
public BigDecimal getDistance() {
|
return distance;
|
}
|
|
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;
|
}
|
|
public String getLegacyDispatchOrdNo() {
|
return legacyDispatchOrdNo;
|
}
|
|
public void setLegacyDispatchOrdNo(String legacyDispatchOrdNo) {
|
this.legacyDispatchOrdNo = legacyDispatchOrdNo;
|
}
|
|
public Date getLegacyServiceNsTime() {
|
return legacyServiceNsTime;
|
}
|
|
public void setLegacyServiceNsTime(Date legacyServiceNsTime) {
|
this.legacyServiceNsTime = legacyServiceNsTime;
|
}
|
|
public Date getLegacyDispatchNsTime() {
|
return legacyDispatchNsTime;
|
}
|
|
public void setLegacyDispatchNsTime(Date legacyDispatchNsTime) {
|
this.legacyDispatchNsTime = legacyDispatchNsTime;
|
}
|
|
public String getLegacyDispatchOrdClass() {
|
return legacyDispatchOrdClass;
|
}
|
|
public void setLegacyDispatchOrdClass(String legacyDispatchOrdClass) {
|
this.legacyDispatchOrdClass = legacyDispatchOrdClass;
|
}
|
}
|