#
Junjie
2026-01-22 afc1bebb2eafc87ba81fb9fe39ef0386d1fb3d17
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * APK打包任务实体类
 */
@TableName("apk_build_task")
public class ApkBuildTask implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 远程打包任务ID
     */
    @TableField("task_id")
    private String taskId;
 
    /**
     * 打包类型(release/debug)
     */
    @TableField("build_type")
    private String buildType;
 
    /**
     * 仓库别名
     */
    @TableField("repo_alias")
    private String repoAlias;
 
    /**
     * 分支名称
     */
    private String branch;
 
    /**
     * 状态:0-等待中,1-打包中,2-成功,3-失败
     */
    private Short status;
 
    /**
     * 本地APK文件路径
     */
    @TableField("apk_path")
    private String apkPath;
 
    /**
     * 远程APK文件路径
     */
    @TableField("artifact_path")
    private String artifactPath;
 
    /**
     * 项目名称
     */
    @TableField("project_name")
    private String projectName;
 
    /**
     * 错误信息
     */
    private String error;
 
    /**
     * 元数据JSON
     */
    private String meta;
 
    /**
     * 队列大小
     */
    @TableField("queue_size")
    private Integer queueSize;
 
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
 
    /**
     * 开始时间
     */
    @TableField("started_at")
    private Date startedAt;
 
    /**
     * 完成时间
     */
    @TableField("finished_at")
    private Date finishedAt;
 
    public ApkBuildTask() {
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getTaskId() {
        return taskId;
    }
 
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
 
    public String getBuildType() {
        return buildType;
    }
 
    public void setBuildType(String buildType) {
        this.buildType = buildType;
    }
 
    public String getRepoAlias() {
        return repoAlias;
    }
 
    public void setRepoAlias(String repoAlias) {
        this.repoAlias = repoAlias;
    }
 
    public String getBranch() {
        return branch;
    }
 
    public void setBranch(String branch) {
        this.branch = branch;
    }
 
    public Short getStatus() {
        return status;
    }
 
    public void setStatus(Short status) {
        this.status = status;
    }
 
    /**
     * 获取状态显示文本
     */
    public String getStatus$() {
        if (null == this.status) {
            return null;
        }
        switch (this.status) {
            case 0:
                return "等待中";
            case 1:
                return "打包中";
            case 2:
                return "成功";
            case 3:
                return "失败";
            default:
                return String.valueOf(this.status);
        }
    }
 
    public String getApkPath() {
        return apkPath;
    }
 
    public void setApkPath(String apkPath) {
        this.apkPath = apkPath;
    }
 
    public String getArtifactPath() {
        return artifactPath;
    }
 
    public void setArtifactPath(String artifactPath) {
        this.artifactPath = artifactPath;
    }
 
    public String getProjectName() {
        return projectName;
    }
 
    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }
 
    public String getError() {
        return error;
    }
 
    public void setError(String error) {
        this.error = error;
    }
 
    public String getMeta() {
        return meta;
    }
 
    public void setMeta(String meta) {
        this.meta = meta;
    }
 
    public Integer getQueueSize() {
        return queueSize;
    }
 
    public void setQueueSize(Integer queueSize) {
        this.queueSize = queueSize;
    }
 
    public Date getCreatedAt() {
        return createdAt;
    }
 
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
 
    public Date getStartedAt() {
        return startedAt;
    }
 
    public void setStartedAt(Date startedAt) {
        this.startedAt = startedAt;
    }
 
    public Date getFinishedAt() {
        return finishedAt;
    }
 
    public void setFinishedAt(Date finishedAt) {
        this.finishedAt = finishedAt;
    }
}