package com.ruoyi.system.domain;
|
|
import java.util.Date;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.common.annotation.Excel;
|
|
/**
|
* 任务状态变更历史记录 sys_task_status_history
|
*
|
* @author ruoyi
|
*/
|
public class SysTaskStatusHistory {
|
private static final long serialVersionUID = 1L;
|
|
/** 主键ID */
|
private Long id;
|
|
/** 任务ID */
|
@Excel(name = "任务ID")
|
private Long taskId;
|
|
/** 任务编号(冗余) */
|
@Excel(name = "任务编号")
|
private String taskCode;
|
|
/** 变更前状态码(NULL表示初始创建) */
|
@Excel(name = "变更前状态")
|
private String fromStatus;
|
|
/** 变更前状态名称 */
|
@Excel(name = "变更前状态名称")
|
private String fromStatusName;
|
|
/** 变更后状态码 */
|
@Excel(name = "变更后状态")
|
private String toStatus;
|
|
/** 变更后状态名称 */
|
@Excel(name = "变更后状态名称")
|
private String toStatusName;
|
|
/** 变更原因/备注 */
|
@Excel(name = "变更原因")
|
private String changeReason;
|
|
/**
|
* 触发来源
|
* APP-移动端,ADMIN-管理后台,SYSTEM-系统自动,LEGACY-旧系统同步
|
*/
|
@Excel(name = "触发来源")
|
private String changeSource;
|
|
/** 操作人ID */
|
@Excel(name = "操作人ID")
|
private Long operatorId;
|
|
/** 操作人姓名 */
|
@Excel(name = "操作人")
|
private String operatorName;
|
|
/** 变更时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "变更时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
private Date changeTime;
|
|
/** 操作时的经度(GPS定位) */
|
private Double longitude;
|
|
/** 操作时的纬度(GPS定位) */
|
private Double latitude;
|
|
/** 操作时的位置地址 */
|
@Excel(name = "操作位置")
|
private String locationAddress;
|
|
/** 操作IP地址 */
|
private String ipAddress;
|
|
/** 备注 */
|
private String remark;
|
|
// ===== 触发来源常量 =====
|
public static final String SOURCE_APP = "APP";
|
public static final String SOURCE_ADMIN = "ADMIN";
|
public static final String SOURCE_SYSTEM = "SYSTEM";
|
public static final String SOURCE_LEGACY = "LEGACY";
|
|
// ===== getter / setter =====
|
|
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 getTaskCode() { return taskCode; }
|
public void setTaskCode(String taskCode) { this.taskCode = taskCode; }
|
|
public String getFromStatus() { return fromStatus; }
|
public void setFromStatus(String fromStatus) { this.fromStatus = fromStatus; }
|
|
public String getFromStatusName() { return fromStatusName; }
|
public void setFromStatusName(String fromStatusName) { this.fromStatusName = fromStatusName; }
|
|
public String getToStatus() { return toStatus; }
|
public void setToStatus(String toStatus) { this.toStatus = toStatus; }
|
|
public String getToStatusName() { return toStatusName; }
|
public void setToStatusName(String toStatusName) { this.toStatusName = toStatusName; }
|
|
public String getChangeReason() { return changeReason; }
|
public void setChangeReason(String changeReason) { this.changeReason = changeReason; }
|
|
public String getChangeSource() { return changeSource; }
|
public void setChangeSource(String changeSource) { this.changeSource = changeSource; }
|
|
public Long getOperatorId() { return operatorId; }
|
public void setOperatorId(Long operatorId) { this.operatorId = operatorId; }
|
|
public String getOperatorName() { return operatorName; }
|
public void setOperatorName(String operatorName) { this.operatorName = operatorName; }
|
|
public Date getChangeTime() { return changeTime; }
|
public void setChangeTime(Date changeTime) { this.changeTime = changeTime; }
|
|
public Double getLongitude() { return longitude; }
|
public void setLongitude(Double longitude) { this.longitude = longitude; }
|
|
public Double getLatitude() { return latitude; }
|
public void setLatitude(Double latitude) { this.latitude = latitude; }
|
|
public String getLocationAddress() { return locationAddress; }
|
public void setLocationAddress(String locationAddress) { this.locationAddress = locationAddress; }
|
|
public String getIpAddress() { return ipAddress; }
|
public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; }
|
|
public String getRemark() { return remark; }
|
public void setRemark(String remark) { this.remark = remark; }
|
|
@Override
|
public String toString() {
|
return "SysTaskStatusHistory{" +
|
"id=" + id +
|
", taskId=" + taskId +
|
", taskCode='" + taskCode + '\'' +
|
", fromStatus='" + fromStatus + '\'' +
|
", toStatus='" + toStatus + '\'' +
|
", changeReason='" + changeReason + '\'' +
|
", changeSource='" + changeSource + '\'' +
|
", operatorName='" + operatorName + '\'' +
|
", changeTime=" + changeTime +
|
'}';
|
}
|
}
|