xyc
3 天以前 53052625c7c520744a4ca061e204ec9594ca67f8
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
package com.emergencyrepair.business.dto;
 
import lombok.Data;
 
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
 
public final class Requests {
    private Requests() {
    }
 
    @Data
    public static class IdList {
        private List<Long> ids = new ArrayList<>();
    }
 
    @Data
    public static class ReviewRequest {
        private List<Long> ids = new ArrayList<>();
        private List<Long> contractorIds = new ArrayList<>();
        private String trackingTeam;
        private LocalDate requestedFinishDate;
    }
 
    @Data
    public static class CancelRequest {
        private List<Long> ids = new ArrayList<>();
        private String reason;
        private String cancelledBy;
    }
 
    @Data
    public static class ApprovalRequest {
        private List<Long> ids = new ArrayList<>();
        private String stage;
        private String result;
        private String opinion;
    }
 
    @Data
    public static class DispatchRequest {
        private List<Long> faultIds = new ArrayList<>();
    }
 
    @Data
    public static class StatusRequest {
        private Long id;
        private String status;
    }
 
    @Data
    public static class ScoreRequest {
        private Long id;
        private Integer score;
        private String opinion;
    }
 
    @Data
    public static class CompletionRequest {
        private Long workOrderId;
        private String engineeringNo;
        private LocalDate startDate;
        private LocalDate finishDate;
        private String contractorPerson;
        private String tInternalConstruction;
        private String relatedProject;
        private Integer durationDays;
        private Integer personCount;
        private String acceptanceMode;
        private String qualityInfo;
        private String reasonAnalysis;
        private String faultDescription;
        private String itemName;
        /** Kept for compatibility; new clients send the multi row "solutions" list instead. */
        private String solution;
        private List<SolutionItem> solutions = new ArrayList<>();
        private List<MaterialItem> materials = new ArrayList<>();
    }
 
    @Data
    public static class SolutionItem {
        private String content;
    }
 
    @Data
    public static class MaterialItem {
        private String name;
        private String specification;
        private String technicalParameter;
        private Integer quantity;
        private String unit;
        private String certificate;
        private String outboundNo;
        private String source;
        private String remark;
    }
 
    @Data
    public static class AcceptanceActionRequest {
        private Long id;
        private String action;
        private String opinion;
        private String rating;
        private String ratingRemark;
    }
 
    @Data
    public static class MenuPermissionRequest {
        private Long roleId;
        private Long tenantId;
        private List<Long> roleMenuIds = new ArrayList<>();
        private List<Long> tenantMenuIds = new ArrayList<>();
    }
}