云
16 小时以前 795bc269ba9acfae74620059c4ed64bd121aa288
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
package cn.iocoder.yudao.module.mdm.controller.admin.agent.vo;
 
import lombok.Builder;
import lombok.Data;
 
import java.util.List;
 
/**
 * 智能体物料导入预检结果。canCommit=false 时提交必然被拒绝。
 */
@Data
@Builder
public class MdmAgentImportPreflightRespVO {
 
    private String preflightHash;
    private Source source;
    private Authorization authorization;
    private Policy policy;
    private Summary summary;
    private Boolean canCommit;
    private List<String> sideEffects;
    private List<Row> rows;
    private List<Issue> blockingItems;
 
    @Data
    @Builder
    public static class Source {
        private Long attachmentId;
        private Long sessionId;
        private String sourceSha256;
        private String proposalRevision;
    }
 
    @Data
    @Builder
    public static class Authorization {
        private Long userId;
        private Long tenantId;
        private String permission;
        private String policyRevision;
    }
 
    @Data
    @Builder
    public static class Policy {
        private Boolean updateAllowed;
        private Boolean mesSyncAllowed;
        private Integer maxRows;
    }
 
    @Data
    @Builder
    public static class Summary {
        private Integer total;
        private Integer create;
        private Integer skip;
        private Integer blocked;
    }
 
    @Data
    @Builder
    public static class Row {
        private String candidateId;
        private Integer rowNo;
        private String code;
        private String name;
        private String action;
        private Resolved resolved;
        private List<Issue> blockers;
        private List<Issue> warnings;
        private Long targetItemId;
    }
 
    @Data
    @Builder
    public static class Resolved {
        private Long categoryId;
        private String categoryName;
        private Long unitMeasureId;
        private String unitMeasureName;
    }
 
    @Data
    @Builder
    public static class Issue {
        private String code;
        private String field;
        private String message;
        private Boolean retryable;
    }
}