package com.ruoyi.system.domain;
|
|
import java.math.BigDecimal;
|
import com.ruoyi.common.core.domain.BaseEntity;
|
import com.ruoyi.common.utils.DateUtils;
|
|
/**
|
* 急救转运任务扩展信息对象 sys_task_emergency
|
*
|
* @author ruoyi
|
* @date 2024-01-16
|
*/
|
public class SysTaskEmergency extends BaseEntity {
|
private static final long serialVersionUID = 1L;
|
|
/** 主键ID */
|
private Long id;
|
|
/** 任务ID */
|
private Long taskId;
|
|
/** 患者联系人 */
|
private String patientContact;
|
|
/** 患者联系电话 */
|
private String patientPhone;
|
|
/** 患者姓名 */
|
private String patientName;
|
|
/** 患者性别 */
|
private String patientGender;
|
|
/** 患者身份证号 */
|
private String patientIdCard;
|
|
/** 患者病情描述 */
|
private String patientCondition;
|
|
/** 转出医院名称 */
|
private String hospitalOutName;
|
|
/** 转出医院ID(关联hosp_data表的HospID) */
|
private Long hospitalOutId;
|
|
/** 转出医院科室 */
|
private String hospitalOutDepartment;
|
|
/** 转出医院科室ID(对应SQL Server dictionary表的vID) */
|
private String hospitalOutDepartmentId;
|
|
/** 转出医院床号 */
|
private String hospitalOutBedNumber;
|
|
/** 转出医院地址 */
|
private String hospitalOutAddress;
|
|
/** 转出医院经度 */
|
private BigDecimal hospitalOutLongitude;
|
|
/** 转出医院纬度 */
|
private BigDecimal hospitalOutLatitude;
|
|
/** 转入医院名称 */
|
private String hospitalInName;
|
|
/** 转入医院ID(关联hosp_data表的HospID) */
|
private Long hospitalInId;
|
|
/** 转入医院科室 */
|
private String hospitalInDepartment;
|
|
/** 转入医院科室ID(对应SQL Server dictionary表的vID) */
|
private String hospitalInDepartmentId;
|
|
/** 转入医院床号 */
|
private String hospitalInBedNumber;
|
|
/** 转入医院地址 */
|
private String hospitalInAddress;
|
|
/** 转入医院经度 */
|
private BigDecimal hospitalInLongitude;
|
|
/** 转入医院纬度 */
|
private BigDecimal hospitalInLatitude;
|
|
/** 转运公里数 */
|
private BigDecimal transferDistance;
|
|
/** 成交价 */
|
private BigDecimal transferPrice;
|
|
/** 乘客联系人(福祉车) */
|
private String passengerContact;
|
|
/** 乘客联系电话(福祉车) */
|
private String passengerPhone;
|
|
/** 病情ID列表(ICD-10疾病ID列表,逗号分隔,用于同步调度单的OrdICD_ID参数) */
|
private String diseaseIds;
|
|
/** 单据类型ID(对应SQL Server的dictionary表vID) */
|
private String documentTypeId;
|
|
/** 任务类型ID(对应SQL Server的dictionary表vID) */
|
private String taskTypeId;
|
|
/** 旧系统ServiceOrdID */
|
private Long legacyServiceOrdId;
|
|
/** 旧系统DispatchOrdID */
|
private Long legacyDispatchOrdId;
|
|
/** 同步状态:0-未同步,1-同步中,2-同步成功,3-同步失败 */
|
private Integer syncStatus;
|
|
/** 同步时间 */
|
private java.util.Date syncTime;
|
|
/** 同步错误信息 */
|
private String syncErrorMsg;
|
|
/** 调度单同步状态:0-未同步,1-同步中,2-同步成功,3-同步失败 */
|
private Integer dispatchSyncStatus;
|
|
/** 调度单同步时间 */
|
private java.util.Date dispatchSyncTime;
|
|
/** 调度单同步错误信息 */
|
private String dispatchSyncErrorMsg;
|
|
/** 是否需要重新同步:0-不需要,1-需要重新同步(车辆或人员变更) */
|
private Integer needResync;
|
|
/** 旧系统ServiceOrdNo(转运单编号) */
|
private String legacyServiceOrdNo;
|
|
/** 旧系统调度单编号 */
|
private String legacyDispatchOrdNo;
|
|
/** 旧系统服务通知时间 */
|
private java.util.Date legacyServiceNsTime;
|
|
/** 旧系统调度通知时间 */
|
private java.util.Date legacyDispatchNsTime;
|
|
/** 旧系统调度单分类 */
|
private String legacyDispatchOrdClass;
|
|
/** 旧系统服务单分类 */
|
private String legacyServiceOrdClass;
|
|
public String getServiceCode(){
|
if(this.legacyServiceOrdClass!=null && this.legacyServiceNsTime!=null && this.legacyServiceOrdNo!=null) {
|
String nstime = DateUtils.parseDateToStr(DateUtils.YYYYMMDD, this.legacyServiceNsTime);
|
return this.legacyServiceOrdClass + nstime +'-'+ this.legacyServiceOrdNo;
|
}
|
return null;
|
}
|
|
public String getDispatchCode(){
|
if(this.legacyDispatchOrdClass!=null && this.legacyDispatchNsTime!=null && this.legacyDispatchOrdNo!=null) {
|
String nstime = DateUtils.parseDateToStr(DateUtils.YYYYMMDD, this.legacyDispatchNsTime);
|
//serviceOrdNo 这个是数字,固定3位数 ,将32,转成032;将1转成001
|
Integer intServiceNo = Integer.valueOf(this.legacyDispatchOrdNo);
|
String ordNoStr = String.format("%03d", intServiceNo);
|
return this.legacyDispatchOrdClass + nstime + "-" + ordNoStr;
|
}else{
|
return null;
|
}
|
}
|
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getTaskId() {
|
return taskId;
|
}
|
|
public void setTaskId(Long taskId) {
|
this.taskId = taskId;
|
}
|
|
public String getPatientContact() {
|
return patientContact;
|
}
|
|
public void setPatientContact(String patientContact) {
|
this.patientContact = patientContact;
|
}
|
|
public String getPatientPhone() {
|
return patientPhone;
|
}
|
|
public void setPatientPhone(String patientPhone) {
|
this.patientPhone = patientPhone;
|
}
|
|
public String getPatientName() {
|
return patientName;
|
}
|
|
public void setPatientName(String patientName) {
|
this.patientName = patientName;
|
}
|
|
public String getPatientGender() {
|
return patientGender;
|
}
|
|
public void setPatientGender(String patientGender) {
|
this.patientGender = patientGender;
|
}
|
|
public String getPatientIdCard() {
|
return patientIdCard;
|
}
|
|
public void setPatientIdCard(String patientIdCard) {
|
this.patientIdCard = patientIdCard;
|
}
|
|
public String getPatientCondition() {
|
return patientCondition;
|
}
|
|
public void setPatientCondition(String patientCondition) {
|
this.patientCondition = patientCondition;
|
}
|
|
public String getHospitalOutName() {
|
return hospitalOutName;
|
}
|
|
public void setHospitalOutName(String hospitalOutName) {
|
this.hospitalOutName = hospitalOutName;
|
}
|
|
public Long getHospitalOutId() {
|
return hospitalOutId;
|
}
|
|
public void setHospitalOutId(Long hospitalOutId) {
|
this.hospitalOutId = hospitalOutId;
|
}
|
|
public String getHospitalOutDepartment() {
|
return hospitalOutDepartment;
|
}
|
|
public void setHospitalOutDepartment(String hospitalOutDepartment) {
|
this.hospitalOutDepartment = hospitalOutDepartment;
|
}
|
|
public String getHospitalOutDepartmentId() {
|
return hospitalOutDepartmentId;
|
}
|
|
public void setHospitalOutDepartmentId(String hospitalOutDepartmentId) {
|
this.hospitalOutDepartmentId = hospitalOutDepartmentId;
|
}
|
|
public String getHospitalOutBedNumber() {
|
return hospitalOutBedNumber;
|
}
|
|
public void setHospitalOutBedNumber(String hospitalOutBedNumber) {
|
this.hospitalOutBedNumber = hospitalOutBedNumber;
|
}
|
|
public String getHospitalOutAddress() {
|
return hospitalOutAddress;
|
}
|
|
public void setHospitalOutAddress(String hospitalOutAddress) {
|
this.hospitalOutAddress = hospitalOutAddress;
|
}
|
|
public BigDecimal getHospitalOutLongitude() {
|
return hospitalOutLongitude;
|
}
|
|
public void setHospitalOutLongitude(BigDecimal hospitalOutLongitude) {
|
this.hospitalOutLongitude = hospitalOutLongitude;
|
}
|
|
public BigDecimal getHospitalOutLatitude() {
|
return hospitalOutLatitude;
|
}
|
|
public void setHospitalOutLatitude(BigDecimal hospitalOutLatitude) {
|
this.hospitalOutLatitude = hospitalOutLatitude;
|
}
|
|
public String getHospitalInName() {
|
return hospitalInName;
|
}
|
|
public void setHospitalInName(String hospitalInName) {
|
this.hospitalInName = hospitalInName;
|
}
|
|
public Long getHospitalInId() {
|
return hospitalInId;
|
}
|
|
public void setHospitalInId(Long hospitalInId) {
|
this.hospitalInId = hospitalInId;
|
}
|
|
public String getHospitalInDepartment() {
|
return hospitalInDepartment;
|
}
|
|
public void setHospitalInDepartment(String hospitalInDepartment) {
|
this.hospitalInDepartment = hospitalInDepartment;
|
}
|
|
public String getHospitalInDepartmentId() {
|
return hospitalInDepartmentId;
|
}
|
|
public void setHospitalInDepartmentId(String hospitalInDepartmentId) {
|
this.hospitalInDepartmentId = hospitalInDepartmentId;
|
}
|
|
public String getHospitalInBedNumber() {
|
return hospitalInBedNumber;
|
}
|
|
public void setHospitalInBedNumber(String hospitalInBedNumber) {
|
this.hospitalInBedNumber = hospitalInBedNumber;
|
}
|
|
public String getHospitalInAddress() {
|
return hospitalInAddress;
|
}
|
|
public void setHospitalInAddress(String hospitalInAddress) {
|
this.hospitalInAddress = hospitalInAddress;
|
}
|
|
public BigDecimal getHospitalInLongitude() {
|
return hospitalInLongitude;
|
}
|
|
public void setHospitalInLongitude(BigDecimal hospitalInLongitude) {
|
this.hospitalInLongitude = hospitalInLongitude;
|
}
|
|
public BigDecimal getHospitalInLatitude() {
|
return hospitalInLatitude;
|
}
|
|
public void setHospitalInLatitude(BigDecimal hospitalInLatitude) {
|
this.hospitalInLatitude = hospitalInLatitude;
|
}
|
|
public BigDecimal getTransferDistance() {
|
return transferDistance;
|
}
|
|
public void setTransferDistance(BigDecimal transferDistance) {
|
this.transferDistance = transferDistance;
|
}
|
|
public BigDecimal getTransferPrice() {
|
return transferPrice;
|
}
|
|
public void setTransferPrice(BigDecimal transferPrice) {
|
this.transferPrice = transferPrice;
|
}
|
|
public String getPassengerContact() {
|
return passengerContact;
|
}
|
|
public void setPassengerContact(String passengerContact) {
|
this.passengerContact = passengerContact;
|
}
|
|
public String getPassengerPhone() {
|
return passengerPhone;
|
}
|
|
public void setPassengerPhone(String passengerPhone) {
|
this.passengerPhone = passengerPhone;
|
}
|
|
public String getDiseaseIds() {
|
return diseaseIds;
|
}
|
|
public void setDiseaseIds(String diseaseIds) {
|
this.diseaseIds = diseaseIds;
|
}
|
|
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 Long getLegacyServiceOrdId() {
|
return legacyServiceOrdId;
|
}
|
|
public void setLegacyServiceOrdId(Long legacyServiceOrdId) {
|
this.legacyServiceOrdId = legacyServiceOrdId;
|
}
|
|
public Long getLegacyDispatchOrdId() {
|
return legacyDispatchOrdId;
|
}
|
|
public void setLegacyDispatchOrdId(Long legacyDispatchOrdId) {
|
this.legacyDispatchOrdId = legacyDispatchOrdId;
|
}
|
|
public Integer getSyncStatus() {
|
return syncStatus;
|
}
|
|
public void setSyncStatus(Integer syncStatus) {
|
this.syncStatus = syncStatus;
|
}
|
|
public java.util.Date getSyncTime() {
|
return syncTime;
|
}
|
|
public void setSyncTime(java.util.Date syncTime) {
|
this.syncTime = syncTime;
|
}
|
|
public String getSyncErrorMsg() {
|
return syncErrorMsg;
|
}
|
|
public void setSyncErrorMsg(String syncErrorMsg) {
|
this.syncErrorMsg = syncErrorMsg;
|
}
|
|
public Integer getDispatchSyncStatus() {
|
return dispatchSyncStatus;
|
}
|
|
public void setDispatchSyncStatus(Integer dispatchSyncStatus) {
|
this.dispatchSyncStatus = dispatchSyncStatus;
|
}
|
|
public java.util.Date getDispatchSyncTime() {
|
return dispatchSyncTime;
|
}
|
|
public void setDispatchSyncTime(java.util.Date dispatchSyncTime) {
|
this.dispatchSyncTime = dispatchSyncTime;
|
}
|
|
public String getDispatchSyncErrorMsg() {
|
return dispatchSyncErrorMsg;
|
}
|
|
public void setDispatchSyncErrorMsg(String dispatchSyncErrorMsg) {
|
this.dispatchSyncErrorMsg = dispatchSyncErrorMsg;
|
}
|
|
public Integer getNeedResync() {
|
return needResync;
|
}
|
|
public void setNeedResync(Integer needResync) {
|
this.needResync = needResync;
|
}
|
|
public String getLegacyServiceOrdNo() {
|
return legacyServiceOrdNo;
|
}
|
|
public void setLegacyServiceOrdNo(String legacyServiceOrdNo) {
|
this.legacyServiceOrdNo = legacyServiceOrdNo;
|
}
|
|
public String getLegacyDispatchOrdNo() {
|
return legacyDispatchOrdNo;
|
}
|
|
public void setLegacyDispatchOrdNo(String legacyDispatchOrdNo) {
|
this.legacyDispatchOrdNo = legacyDispatchOrdNo;
|
}
|
|
public java.util.Date getLegacyServiceNsTime() {
|
return legacyServiceNsTime;
|
}
|
|
public void setLegacyServiceNsTime(java.util.Date legacyServiceNsTime) {
|
this.legacyServiceNsTime = legacyServiceNsTime;
|
}
|
|
public java.util.Date getLegacyDispatchNsTime() {
|
return legacyDispatchNsTime;
|
}
|
|
public void setLegacyDispatchNsTime(java.util.Date legacyDispatchNsTime) {
|
this.legacyDispatchNsTime = legacyDispatchNsTime;
|
}
|
|
public String getLegacyDispatchOrdClass() {
|
return legacyDispatchOrdClass;
|
}
|
|
public void setLegacyDispatchOrdClass(String legacyDispatchOrdClass) {
|
this.legacyDispatchOrdClass = legacyDispatchOrdClass;
|
}
|
|
public String getLegacyServiceOrdClass() {
|
return legacyServiceOrdClass;
|
}
|
|
public void setLegacyServiceOrdClass(String legacyServiceOrdClass) {
|
this.legacyServiceOrdClass = legacyServiceOrdClass;
|
}
|
|
@Override
|
public String toString() {
|
return "SysTaskEmergency{" +
|
"id=" + id +
|
", taskId=" + taskId +
|
", patientName='" + patientName + '\'' +
|
", hospitalOutName='" + hospitalOutName + '\'' +
|
", hospitalInName='" + hospitalInName + '\'' +
|
", transferDistance=" + transferDistance +
|
", transferPrice=" + transferPrice +
|
", legacyServiceOrdNo='" + legacyServiceOrdNo + '\'' +
|
", legacyDispatchOrdNo='" + legacyDispatchOrdNo + '\'' +
|
", legacyServiceNsTime=" + legacyServiceNsTime +
|
", legacyDispatchNsTime=" + legacyDispatchNsTime +
|
", legacyDispatchOrdClass='" + legacyDispatchOrdClass + '\'' +
|
", legacyServiceOrdClass='" + legacyServiceOrdClass + '\'' +
|
'}';
|
}
|
}
|