许鹏程
2023-06-30 3bbfaa3d7d416afbd154576453c8ee9e7e2f8899
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
package com.product.data.center.entity;
 
import com.product.core.entity.DataTableEntity;
 
/**
 * @Author cheng
 * @Date 2022/7/14 16:04
 * @PackageName:com.product.data.center.entity
 * @ClassName: BatchErrorEntity
 * @Description: 批处理错误
 * @Version 1.0
 */
public class BatchExecuteEntity {
 
    private boolean isError;
 
    private int maxId;
 
    private int minId;
 
    private int pageIndex;
 
    private String errorMessage;
 
    private DataTableEntity dte;
 
 
    public BatchExecuteEntity(int maxId, int minId) {
        this.maxId = maxId;
        this.minId = minId;
        this.isError = false;
    }
 
    public BatchExecuteEntity(DataTableEntity dte, int maxId, int minId, int pageIndex, String errorMessage) {
        this.dte = dte;
        this.maxId = maxId;
        this.minId = minId;
        this.pageIndex = pageIndex;
        this.errorMessage = errorMessage;
        this.isError = true;
    }
 
    public int getMaxId() {
        return maxId;
    }
 
    public int getMinId() {
        return minId;
    }
 
    public int getPageIndex() {
        return pageIndex;
    }
 
    public String getErrorMessage() {
        return errorMessage;
    }
 
    public DataTableEntity getDte() {
        return dte;
    }
}