ImportPoolProgress.java
1.28 KB
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
package com.uccc.number.domain;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;
@Setter
@Getter
@ToString
public class ImportPoolProgress {
private String importKey;//导入标识
private String filename;//正在导入的文件名
private Integer totalCount;//上传总数
private Integer pushedCount;//实时上传成功数
private Integer failCount;//实时上传失败数
private String failFile;//上传结束后错误报告url
private Integer status;
private Date cts;
private Date uts;
private String type;
public ImportPoolProgress() {}
public ImportPoolProgress(String fileName, String importKey, Integer total) {
this.filename = fileName;
this.importKey = importKey;
this.totalCount = total;
this.pushedCount = 0;
this.failCount = 0;
}
public static ImportPoolProgress getInstance() {
ImportPoolProgress instance = new ImportPoolProgress();
instance.setPushedCount(0);
instance.setFailCount(0);
return instance;
}
public void addSucceedCount(Integer succeedCount) {
this.pushedCount += succeedCount;
}
public void addFailedCount(Integer failedCount) {
this.failCount += failedCount;
}
}