wlzboy
1 天以前 6b29bd596f8b48485d3506bfba4a1e0ea6c7df99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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 +
                '}';
    }
}