刘光辉
118 分钟以前 06f314545ac3514d7ce28939920866ae8188d31c
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
package jnpf.elnEntity.runtime;
 
import lombok.Data;
import jnpf.elnEntity.ElnDocumentFileVo;
 
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
 
public final class ElnRecordVos {
 
    @Data
    public static class RepeatRow {
        private String rowId;
        private String groupCode;
        private Integer rowOrder;
        private String status;
        private String deleteOperationCode;
        private String deleteReason;
    }
 
    @Data
    public static class Created {
        private String recordId;
        private String revisionId;
        private ElnDocumentFileVo document;
        private boolean existing;
    }
 
    @Data
    public static class BatchCreated {
        private List<BatchItem> items = new ArrayList<>();
    }
 
    @Data
    public static class BatchItem {
        private String testWorkItemId;
        private String status;
        private Created created;
        private String errorCode;
        private String errorMessage;
    }
 
    @Data
    public static class SharedFillPreview {
        private String testDefinitionId;
        private String testDefinitionCode;
        private String testDefinitionName;
        private String previewToken;
        private List<SharedField> fields = new ArrayList<>();
        private List<SharedTarget> targets = new ArrayList<>();
    }
 
    @Data
    public static class SharedField {
        private String fieldVersionId;
        private String fieldCode;
        private String fieldName;
        private String dataType;
        private String unit;
        private boolean conflictingValues;
        private List<String> targetTestWorkItemIds = new ArrayList<>();
        private List<String> defaultExcludedTestWorkItemIds = new ArrayList<>();
    }
 
    @Data
    public static class SharedTarget {
        private String testWorkItemId;
        private String testWorkItemName;
        private String recordId;
        private String revisionId;
        private Integer recordVersion;
        private boolean eligible;
        private String errorCode;
        private String errorMessage;
        private Map<String, String> currentValues = new LinkedHashMap<>();
    }
 
    @Data
    public static class SharedFilled {
        private String operationCode;
        private List<String> fieldVersionIds = new ArrayList<>();
        /** @deprecated 使用 fieldVersionIds。 */
        @Deprecated
        private String fieldVersionId;
        private List<SharedFillTargetResult> targets = new ArrayList<>();
    }
 
    @Data
    public static class SharedFillTargetResult {
        private String testWorkItemId;
        private String recordId;
        private String status;
        private String errorCode;
        private String errorMessage;
        private Integer recordVersion;
        private int recalculatedCount;
    }
 
    @Data
    public static class Recalculated {
        private String recordId;
        private String revisionId;
        private String operationCode;
        private Integer recordVersion;
        private int successCount;
        private int missingInputCount;
        private int errorCount;
    }
 
    @Data
    public static class SourceSyncPreview {
        private String recordId;
        private String revisionId;
        private Integer recordVersion;
        private String previewToken;
        private int changedCount;
        private List<SourceSyncDifference> differences = new ArrayList<>();
    }
 
    @Data
    public static class SourceSynchronized {
        private String recordId;
        private String revisionId;
        private String operationCode;
        private Integer recordVersion;
        private int changedCount;
        private int recalculatedCount;
        private List<String> changedFieldCodes = new ArrayList<>();
        private List<SourceSyncDifference> differences = new ArrayList<>();
    }
 
    @Data
    public static class SourceSyncDifference {
        private String bindingId;
        private String fieldValueId;
        private String fieldCode;
        private String fieldName;
        private String dataType;
        private String sourceType;
        private String sourceRecordId;
        private String sourceRevisionId;
        private String sourceValueId;
        private String sourceFieldVersionId;
        private Date sourceFetchedAt;
        private String sourceProperty;
        private Integer sourcePropertyRevision;
        private String sourceOutcome;
        private String sourceReason;
        private String sourceLineage;
        private boolean canClear;
        private String clearReason;
        private String previousValue;
        private String currentValue;
        private String previousSourceType;
        private String currentSourceType;
        private String previousSourceRef;
        private String currentSourceRef;
        private Date previousFetchedTime;
        private Date currentFetchedTime;
        private boolean changed;
    }
 
    private ElnRecordVos() {
    }
}