ソースを参照

Merge remote-tracking branch 'origin/master'

sunpanhu 4 週間 前
コミット
3a37076905

+ 90 - 1
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSecurityTest.java

@@ -24,24 +24,44 @@ public class LedgerSecurityTest extends BaseEntity {
24
     @Excel(name = "测试日期", width = 20, dateFormat = "yyyy-MM-dd")
24
     @Excel(name = "测试日期", width = 20, dateFormat = "yyyy-MM-dd")
25
     private Date recordDate;
25
     private Date recordDate;
26
 
26
 
27
+    @Excel(name = "测试区域")
28
+    private String region;
29
+
30
+    @Excel(name = "测试通道")
31
+    private String channel;
32
+
27
     @Excel(name = "部门名称")
33
     @Excel(name = "部门名称")
28
     private String deptName;
34
     private String deptName;
29
 
35
 
36
+    private Long deptId;
37
+
30
     @Excel(name = "队室/班组")
38
     @Excel(name = "队室/班组")
31
     private String teamName;
39
     private String teamName;
32
 
40
 
41
+    private Long teamId;
42
+
33
     @Excel(name = "小组")
43
     @Excel(name = "小组")
34
     private String groupName;
44
     private String groupName;
35
 
45
 
46
+    private Long groupId;
47
+
48
+    private Long areaId;
49
+
36
     @Excel(name = "测试人")
50
     @Excel(name = "测试人")
37
     private String testerName;
51
     private String testerName;
38
 
52
 
53
+    private Long testerId;
54
+
39
     @Excel(name = "被测人")
55
     @Excel(name = "被测人")
40
     private String testedName;
56
     private String testedName;
41
 
57
 
42
-    @Excel(name = "测试类型")
58
+    private Long testedId;
59
+
60
+    @Excel(name = "被测试岗位")
43
     private String testType;
61
     private String testType;
44
 
62
 
63
+    private Long positionId;
64
+
45
     @Excel(name = "测试项目")
65
     @Excel(name = "测试项目")
46
     private String testItem;
66
     private String testItem;
47
 
67
 
@@ -54,6 +74,27 @@ public class LedgerSecurityTest extends BaseEntity {
54
     @Excel(name = "处理结果")
74
     @Excel(name = "处理结果")
55
     private String resultHandling;
75
     private String resultHandling;
56
 
76
 
77
+    @Excel(name = "复查地点及时间")
78
+    private String reviewLocationTime;
79
+
80
+    @Excel(name = "整改材料")
81
+    private String reviewMaterial;
82
+
83
+    @Excel(name = "推送队室质控员")
84
+    private String pushTeamQc;
85
+
86
+    @Excel(name = "推送质控队长")
87
+    private String pushQcCaptain;
88
+
89
+    @Excel(name = "队室内勤")
90
+    private String teamInternalDuty;
91
+
92
+    @Excel(name = "点击推送至相关人员")
93
+    private String pushToRelevant;
94
+
95
+    @Excel(name = "队室负责人")
96
+    private String teamLeader;
97
+
57
     @Excel(name = "扣分")
98
     @Excel(name = "扣分")
58
     private BigDecimal deductScore;
99
     private BigDecimal deductScore;
59
 
100
 
@@ -136,4 +177,52 @@ public class LedgerSecurityTest extends BaseEntity {
136
 
177
 
137
     public String getSourceType() { return sourceType; }
178
     public String getSourceType() { return sourceType; }
138
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
179
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
180
+
181
+    public String getRegion() { return region; }
182
+    public void setRegion(String region) { this.region = region; }
183
+
184
+    public String getChannel() { return channel; }
185
+    public void setChannel(String channel) { this.channel = channel; }
186
+
187
+    public Long getDeptId() { return deptId; }
188
+    public void setDeptId(Long deptId) { this.deptId = deptId; }
189
+
190
+    public Long getTeamId() { return teamId; }
191
+    public void setTeamId(Long teamId) { this.teamId = teamId; }
192
+
193
+    public Long getGroupId() { return groupId; }
194
+    public void setGroupId(Long groupId) { this.groupId = groupId; }
195
+
196
+    public Long getAreaId() { return areaId; }
197
+    public void setAreaId(Long areaId) { this.areaId = areaId; }
198
+
199
+    public Long getTesterId() { return testerId; }
200
+    public void setTesterId(Long testerId) { this.testerId = testerId; }
201
+
202
+    public Long getTestedId() { return testedId; }
203
+    public void setTestedId(Long testedId) { this.testedId = testedId; }
204
+
205
+    public Long getPositionId() { return positionId; }
206
+    public void setPositionId(Long positionId) { this.positionId = positionId; }
207
+
208
+    public String getReviewLocationTime() { return reviewLocationTime; }
209
+    public void setReviewLocationTime(String reviewLocationTime) { this.reviewLocationTime = reviewLocationTime; }
210
+
211
+    public String getReviewMaterial() { return reviewMaterial; }
212
+    public void setReviewMaterial(String reviewMaterial) { this.reviewMaterial = reviewMaterial; }
213
+
214
+    public String getPushTeamQc() { return pushTeamQc; }
215
+    public void setPushTeamQc(String pushTeamQc) { this.pushTeamQc = pushTeamQc; }
216
+
217
+    public String getPushQcCaptain() { return pushQcCaptain; }
218
+    public void setPushQcCaptain(String pushQcCaptain) { this.pushQcCaptain = pushQcCaptain; }
219
+
220
+    public String getTeamInternalDuty() { return teamInternalDuty; }
221
+    public void setTeamInternalDuty(String teamInternalDuty) { this.teamInternalDuty = teamInternalDuty; }
222
+
223
+    public String getPushToRelevant() { return pushToRelevant; }
224
+    public void setPushToRelevant(String pushToRelevant) { this.pushToRelevant = pushToRelevant; }
225
+
226
+    public String getTeamLeader() { return teamLeader; }
227
+    public void setTeamLeader(String teamLeader) { this.teamLeader = teamLeader; }
139
 }
228
 }

+ 10 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSeizureStats.java

@@ -37,12 +37,16 @@ public class LedgerSeizureStats extends BaseEntity {
37
     @Excel(name = "工作区域")
37
     @Excel(name = "工作区域")
38
     private String workArea;
38
     private String workArea;
39
 
39
 
40
+    private Long areaId;
41
+
40
     @Excel(name = "安检资格证书等级")
42
     @Excel(name = "安检资格证书等级")
41
     private String qualificationLevel;
43
     private String qualificationLevel;
42
 
44
 
43
     @Excel(name = "岗位")
45
     @Excel(name = "岗位")
44
     private String position;
46
     private String position;
45
 
47
 
48
+    private Long positionId;
49
+
46
     @Excel(name = "小组")
50
     @Excel(name = "小组")
47
     private String groupName;
51
     private String groupName;
48
 
52
 
@@ -154,12 +158,18 @@ public class LedgerSeizureStats extends BaseEntity {
154
     public String getWorkArea() { return workArea; }
158
     public String getWorkArea() { return workArea; }
155
     public void setWorkArea(String workArea) { this.workArea = workArea; }
159
     public void setWorkArea(String workArea) { this.workArea = workArea; }
156
 
160
 
161
+    public Long getAreaId() { return areaId; }
162
+    public void setAreaId(Long areaId) { this.areaId = areaId; }
163
+
157
     public String getQualificationLevel() { return qualificationLevel; }
164
     public String getQualificationLevel() { return qualificationLevel; }
158
     public void setQualificationLevel(String qualificationLevel) { this.qualificationLevel = qualificationLevel; }
165
     public void setQualificationLevel(String qualificationLevel) { this.qualificationLevel = qualificationLevel; }
159
 
166
 
160
     public String getPosition() { return position; }
167
     public String getPosition() { return position; }
161
     public void setPosition(String position) { this.position = position; }
168
     public void setPosition(String position) { this.position = position; }
162
 
169
 
170
+    public Long getPositionId() { return positionId; }
171
+    public void setPositionId(Long positionId) { this.positionId = positionId; }
172
+
163
     public String getGroupName() { return groupName; }
173
     public String getGroupName() { return groupName; }
164
     public void setGroupName(String groupName) { this.groupName = groupName; }
174
     public void setGroupName(String groupName) { this.groupName = groupName; }
165
 
175
 

+ 127 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSupervisionProblem.java

@@ -27,21 +27,34 @@ public class LedgerSupervisionProblem extends BaseEntity {
27
     @Excel(name = "部门名称")
27
     @Excel(name = "部门名称")
28
     private String deptName;
28
     private String deptName;
29
 
29
 
30
+    private Long deptId;
31
+
30
     @Excel(name = "队室/班组")
32
     @Excel(name = "队室/班组")
31
     private String teamName;
33
     private String teamName;
32
 
34
 
35
+    private Long teamId;
36
+
33
     @Excel(name = "小组")
37
     @Excel(name = "小组")
34
     private String groupName;
38
     private String groupName;
35
 
39
 
40
+    private Long groupId;
41
+
42
+    private Long areaId;
43
+
36
     @Excel(name = "巡查人")
44
     @Excel(name = "巡查人")
37
     private String inspectorName;
45
     private String inspectorName;
38
 
46
 
39
     @Excel(name = "被查人")
47
     @Excel(name = "被查人")
40
     private String inspectedName;
48
     private String inspectedName;
41
 
49
 
50
+    private Long inspectedId;
51
+
42
     @Excel(name = "问题类型")
52
     @Excel(name = "问题类型")
43
     private String problemType;
53
     private String problemType;
44
 
54
 
55
+    @Excel(name = "问题层级")
56
+    private String problemLevel;
57
+
45
     @Excel(name = "问题描述")
58
     @Excel(name = "问题描述")
46
     private String problemDesc;
59
     private String problemDesc;
47
 
60
 
@@ -51,9 +64,57 @@ public class LedgerSupervisionProblem extends BaseEntity {
51
     @Excel(name = "通道号")
64
     @Excel(name = "通道号")
52
     private String channelNo;
65
     private String channelNo;
53
 
66
 
67
+    @Excel(name = "岗位")
68
+    private String position;
69
+
70
+    private Long positionId;
71
+
54
     @Excel(name = "处理结果")
72
     @Excel(name = "处理结果")
55
     private String resultHandling;
73
     private String resultHandling;
56
 
74
 
75
+    @Excel(name = "依据")
76
+    private String basis;
77
+
78
+    @Excel(name = "队室质控员")
79
+    private String qualityOfficer;
80
+
81
+    @Excel(name = "质控推送队室负责人")
82
+    private String qualityPushLeader;
83
+
84
+    @Excel(name = "整改情况")
85
+    private String rectificationStatus;
86
+
87
+    @Excel(name = "佐证材料")
88
+    private String evidenceMaterial;
89
+
90
+    @Excel(name = "发送至相关人员")
91
+    private String sendToRelevant;
92
+
93
+    @Excel(name = "本月内发生问题次数")
94
+    private Integer monthlyProblemCount;
95
+
96
+    @Excel(name = "上月质控问题超过三次人员")
97
+    private String lastMonthExceedThree;
98
+
99
+    @Excel(name = "检查人员")
100
+    private String checkPersonnel;
101
+
102
+    @Excel(name = "分管质控经理")
103
+    private String manageQcManager;
104
+
105
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
106
+    @Excel(name = "录入时间", width = 20, dateFormat = "yyyy-MM-dd HH:mm:ss")
107
+    private Date inputTime;
108
+
109
+    @Excel(name = "部门培训教员")
110
+    private String deptTrainingInstructor;
111
+
112
+    @Excel(name = "队室内勤")
113
+    private String teamInternalDuty;
114
+
115
+    @Excel(name = "队室负责人")
116
+    private String teamLeader;
117
+
57
     @Excel(name = "扣分")
118
     @Excel(name = "扣分")
58
     private BigDecimal deductScore;
119
     private BigDecimal deductScore;
59
 
120
 
@@ -86,21 +147,39 @@ public class LedgerSupervisionProblem extends BaseEntity {
86
     public String getDeptName() { return deptName; }
147
     public String getDeptName() { return deptName; }
87
     public void setDeptName(String deptName) { this.deptName = deptName; }
148
     public void setDeptName(String deptName) { this.deptName = deptName; }
88
 
149
 
150
+    public Long getDeptId() { return deptId; }
151
+    public void setDeptId(Long deptId) { this.deptId = deptId; }
152
+
89
     public String getTeamName() { return teamName; }
153
     public String getTeamName() { return teamName; }
90
     public void setTeamName(String teamName) { this.teamName = teamName; }
154
     public void setTeamName(String teamName) { this.teamName = teamName; }
91
 
155
 
156
+    public Long getTeamId() { return teamId; }
157
+    public void setTeamId(Long teamId) { this.teamId = teamId; }
158
+
92
     public String getGroupName() { return groupName; }
159
     public String getGroupName() { return groupName; }
93
     public void setGroupName(String groupName) { this.groupName = groupName; }
160
     public void setGroupName(String groupName) { this.groupName = groupName; }
94
 
161
 
162
+    public Long getGroupId() { return groupId; }
163
+    public void setGroupId(Long groupId) { this.groupId = groupId; }
164
+
165
+    public Long getAreaId() { return areaId; }
166
+    public void setAreaId(Long areaId) { this.areaId = areaId; }
167
+
95
     public String getInspectorName() { return inspectorName; }
168
     public String getInspectorName() { return inspectorName; }
96
     public void setInspectorName(String inspectorName) { this.inspectorName = inspectorName; }
169
     public void setInspectorName(String inspectorName) { this.inspectorName = inspectorName; }
97
 
170
 
98
     public String getInspectedName() { return inspectedName; }
171
     public String getInspectedName() { return inspectedName; }
99
     public void setInspectedName(String inspectedName) { this.inspectedName = inspectedName; }
172
     public void setInspectedName(String inspectedName) { this.inspectedName = inspectedName; }
100
 
173
 
174
+    public Long getInspectedId() { return inspectedId; }
175
+    public void setInspectedId(Long inspectedId) { this.inspectedId = inspectedId; }
176
+
101
     public String getProblemType() { return problemType; }
177
     public String getProblemType() { return problemType; }
102
     public void setProblemType(String problemType) { this.problemType = problemType; }
178
     public void setProblemType(String problemType) { this.problemType = problemType; }
103
 
179
 
180
+    public String getProblemLevel() { return problemLevel; }
181
+    public void setProblemLevel(String problemLevel) { this.problemLevel = problemLevel; }
182
+
104
     public String getProblemDesc() { return problemDesc; }
183
     public String getProblemDesc() { return problemDesc; }
105
     public void setProblemDesc(String problemDesc) { this.problemDesc = problemDesc; }
184
     public void setProblemDesc(String problemDesc) { this.problemDesc = problemDesc; }
106
 
185
 
@@ -110,9 +189,57 @@ public class LedgerSupervisionProblem extends BaseEntity {
110
     public String getChannelNo() { return channelNo; }
189
     public String getChannelNo() { return channelNo; }
111
     public void setChannelNo(String channelNo) { this.channelNo = channelNo; }
190
     public void setChannelNo(String channelNo) { this.channelNo = channelNo; }
112
 
191
 
192
+    public String getPosition() { return position; }
193
+    public void setPosition(String position) { this.position = position; }
194
+
195
+    public Long getPositionId() { return positionId; }
196
+    public void setPositionId(Long positionId) { this.positionId = positionId; }
197
+
113
     public String getResultHandling() { return resultHandling; }
198
     public String getResultHandling() { return resultHandling; }
114
     public void setResultHandling(String resultHandling) { this.resultHandling = resultHandling; }
199
     public void setResultHandling(String resultHandling) { this.resultHandling = resultHandling; }
115
 
200
 
201
+    public String getBasis() { return basis; }
202
+    public void setBasis(String basis) { this.basis = basis; }
203
+
204
+    public String getQualityOfficer() { return qualityOfficer; }
205
+    public void setQualityOfficer(String qualityOfficer) { this.qualityOfficer = qualityOfficer; }
206
+
207
+    public String getQualityPushLeader() { return qualityPushLeader; }
208
+    public void setQualityPushLeader(String qualityPushLeader) { this.qualityPushLeader = qualityPushLeader; }
209
+
210
+    public String getRectificationStatus() { return rectificationStatus; }
211
+    public void setRectificationStatus(String rectificationStatus) { this.rectificationStatus = rectificationStatus; }
212
+
213
+    public String getEvidenceMaterial() { return evidenceMaterial; }
214
+    public void setEvidenceMaterial(String evidenceMaterial) { this.evidenceMaterial = evidenceMaterial; }
215
+
216
+    public String getSendToRelevant() { return sendToRelevant; }
217
+    public void setSendToRelevant(String sendToRelevant) { this.sendToRelevant = sendToRelevant; }
218
+
219
+    public Integer getMonthlyProblemCount() { return monthlyProblemCount; }
220
+    public void setMonthlyProblemCount(Integer monthlyProblemCount) { this.monthlyProblemCount = monthlyProblemCount; }
221
+
222
+    public String getLastMonthExceedThree() { return lastMonthExceedThree; }
223
+    public void setLastMonthExceedThree(String lastMonthExceedThree) { this.lastMonthExceedThree = lastMonthExceedThree; }
224
+
225
+    public String getCheckPersonnel() { return checkPersonnel; }
226
+    public void setCheckPersonnel(String checkPersonnel) { this.checkPersonnel = checkPersonnel; }
227
+
228
+    public String getManageQcManager() { return manageQcManager; }
229
+    public void setManageQcManager(String manageQcManager) { this.manageQcManager = manageQcManager; }
230
+
231
+    public Date getInputTime() { return inputTime; }
232
+    public void setInputTime(Date inputTime) { this.inputTime = inputTime; }
233
+
234
+    public String getDeptTrainingInstructor() { return deptTrainingInstructor; }
235
+    public void setDeptTrainingInstructor(String deptTrainingInstructor) { this.deptTrainingInstructor = deptTrainingInstructor; }
236
+
237
+    public String getTeamInternalDuty() { return teamInternalDuty; }
238
+    public void setTeamInternalDuty(String teamInternalDuty) { this.teamInternalDuty = teamInternalDuty; }
239
+
240
+    public String getTeamLeader() { return teamLeader; }
241
+    public void setTeamLeader(String teamLeader) { this.teamLeader = teamLeader; }
242
+
116
     public BigDecimal getDeductScore() { return deductScore; }
243
     public BigDecimal getDeductScore() { return deductScore; }
117
     public void setDeductScore(BigDecimal deductScore) { this.deductScore = deductScore; }
244
     public void setDeductScore(BigDecimal deductScore) { this.deductScore = deductScore; }
118
 
245
 

+ 78 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerUnsafeEvent.java

@@ -24,18 +24,54 @@ public class LedgerUnsafeEvent extends BaseEntity {
24
     @Excel(name = "事件日期", width = 20, dateFormat = "yyyy-MM-dd")
24
     @Excel(name = "事件日期", width = 20, dateFormat = "yyyy-MM-dd")
25
     private Date recordDate;
25
     private Date recordDate;
26
 
26
 
27
+    @Excel(name = "航班号")
28
+    private String flightNo;
29
+
27
     @Excel(name = "部门名称")
30
     @Excel(name = "部门名称")
28
     private String deptName;
31
     private String deptName;
29
 
32
 
30
     @Excel(name = "队室/班组")
33
     @Excel(name = "队室/班组")
31
     private String teamName;
34
     private String teamName;
32
 
35
 
36
+    @Excel(name = "队室内勤")
37
+    private String teamInternalDuty;
38
+
39
+    @Excel(name = "小组")
40
+    private String groupName;
41
+
42
+    private Long groupId;
43
+
44
+    private Long deptId;
45
+
46
+    private Long teamId;
47
+
33
     @Excel(name = "责任人")
48
     @Excel(name = "责任人")
34
     private String responsibleName;
49
     private String responsibleName;
35
 
50
 
51
+    private Long responsibleId;
52
+
36
     @Excel(name = "事件类型")
53
     @Excel(name = "事件类型")
37
     private String eventType;
54
     private String eventType;
38
 
55
 
56
+    @Excel(name = "涉及物品")
57
+    private String involvedItems;
58
+
59
+    @Excel(name = "岗位")
60
+    private String position;
61
+
62
+    private Long positionId;
63
+
64
+    @Excel(name = "区域")
65
+    private String area;
66
+
67
+    private Long areaId;
68
+
69
+    @Excel(name = "通道号")
70
+    private String channelNo;
71
+
72
+    @Excel(name = "图像")
73
+    private String image;
74
+
39
     @Excel(name = "事件描述")
75
     @Excel(name = "事件描述")
40
     private String eventDesc;
76
     private String eventDesc;
41
 
77
 
@@ -62,18 +98,60 @@ public class LedgerUnsafeEvent extends BaseEntity {
62
     public Date getRecordDate() { return recordDate; }
98
     public Date getRecordDate() { return recordDate; }
63
     public void setRecordDate(Date recordDate) { this.recordDate = recordDate; }
99
     public void setRecordDate(Date recordDate) { this.recordDate = recordDate; }
64
 
100
 
101
+    public String getFlightNo() { return flightNo; }
102
+    public void setFlightNo(String flightNo) { this.flightNo = flightNo; }
103
+
65
     public String getDeptName() { return deptName; }
104
     public String getDeptName() { return deptName; }
66
     public void setDeptName(String deptName) { this.deptName = deptName; }
105
     public void setDeptName(String deptName) { this.deptName = deptName; }
67
 
106
 
68
     public String getTeamName() { return teamName; }
107
     public String getTeamName() { return teamName; }
69
     public void setTeamName(String teamName) { this.teamName = teamName; }
108
     public void setTeamName(String teamName) { this.teamName = teamName; }
70
 
109
 
110
+    public String getTeamInternalDuty() { return teamInternalDuty; }
111
+    public void setTeamInternalDuty(String teamInternalDuty) { this.teamInternalDuty = teamInternalDuty; }
112
+
113
+    public String getGroupName() { return groupName; }
114
+    public void setGroupName(String groupName) { this.groupName = groupName; }
115
+
116
+    public Long getGroupId() { return groupId; }
117
+    public void setGroupId(Long groupId) { this.groupId = groupId; }
118
+
119
+    public Long getDeptId() { return deptId; }
120
+    public void setDeptId(Long deptId) { this.deptId = deptId; }
121
+
122
+    public Long getTeamId() { return teamId; }
123
+    public void setTeamId(Long teamId) { this.teamId = teamId; }
124
+
71
     public String getResponsibleName() { return responsibleName; }
125
     public String getResponsibleName() { return responsibleName; }
72
     public void setResponsibleName(String responsibleName) { this.responsibleName = responsibleName; }
126
     public void setResponsibleName(String responsibleName) { this.responsibleName = responsibleName; }
73
 
127
 
128
+    public Long getResponsibleId() { return responsibleId; }
129
+    public void setResponsibleId(Long responsibleId) { this.responsibleId = responsibleId; }
130
+
74
     public String getEventType() { return eventType; }
131
     public String getEventType() { return eventType; }
75
     public void setEventType(String eventType) { this.eventType = eventType; }
132
     public void setEventType(String eventType) { this.eventType = eventType; }
76
 
133
 
134
+    public String getInvolvedItems() { return involvedItems; }
135
+    public void setInvolvedItems(String involvedItems) { this.involvedItems = involvedItems; }
136
+
137
+    public String getPosition() { return position; }
138
+    public void setPosition(String position) { this.position = position; }
139
+
140
+    public Long getPositionId() { return positionId; }
141
+    public void setPositionId(Long positionId) { this.positionId = positionId; }
142
+
143
+    public String getArea() { return area; }
144
+    public void setArea(String area) { this.area = area; }
145
+
146
+    public Long getAreaId() { return areaId; }
147
+    public void setAreaId(Long areaId) { this.areaId = areaId; }
148
+
149
+    public String getChannelNo() { return channelNo; }
150
+    public void setChannelNo(String channelNo) { this.channelNo = channelNo; }
151
+
152
+    public String getImage() { return image; }
153
+    public void setImage(String image) { this.image = image; }
154
+
77
     public String getEventDesc() { return eventDesc; }
155
     public String getEventDesc() { return eventDesc; }
78
     public void setEventDesc(String eventDesc) { this.eventDesc = eventDesc; }
156
     public void setEventDesc(String eventDesc) { this.eventDesc = eventDesc; }
79
 
157
 

+ 250 - 30
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerCombinedImportServiceImpl.java

@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
 import com.baomidou.mybatisplus.extension.service.IService;
4
 import com.baomidou.mybatisplus.extension.service.IService;
5
 import com.sundot.airport.common.core.domain.entity.SysDept;
5
 import com.sundot.airport.common.core.domain.entity.SysDept;
6
 import com.sundot.airport.common.core.domain.entity.SysUser;
6
 import com.sundot.airport.common.core.domain.entity.SysUser;
7
+import com.sundot.airport.system.domain.SysPost;
8
+import com.sundot.airport.system.domain.BasePosition;
7
 import com.sundot.airport.ledger.domain.*;
9
 import com.sundot.airport.ledger.domain.*;
8
 import com.sundot.airport.ledger.domain.LedgerDailyTraining;
10
 import com.sundot.airport.ledger.domain.LedgerDailyTraining;
9
 import com.sundot.airport.ledger.domain.LedgerLeaderDuty;
11
 import com.sundot.airport.ledger.domain.LedgerLeaderDuty;
@@ -18,6 +20,8 @@ import com.sundot.airport.ledger.service.ILedgerDormFireSafetyService;
18
 import com.sundot.airport.ledger.service.ILedgerTrainingIssueService;
20
 import com.sundot.airport.ledger.service.ILedgerTrainingIssueService;
19
 import com.sundot.airport.system.mapper.SysDeptMapper;
21
 import com.sundot.airport.system.mapper.SysDeptMapper;
20
 import com.sundot.airport.system.mapper.SysUserMapper;
22
 import com.sundot.airport.system.mapper.SysUserMapper;
23
+import com.sundot.airport.system.mapper.SysPostMapper;
24
+import com.sundot.airport.system.mapper.BasePositionMapper;
21
 import org.apache.poi.ss.usermodel.*;
25
 import org.apache.poi.ss.usermodel.*;
22
 import org.springframework.beans.factory.annotation.Autowired;
26
 import org.springframework.beans.factory.annotation.Autowired;
23
 import org.springframework.stereotype.Service;
27
 import org.springframework.stereotype.Service;
@@ -60,6 +64,8 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
60
     @Autowired private IScoreEventService scoreEventService;
64
     @Autowired private IScoreEventService scoreEventService;
61
     @Autowired private SysUserMapper sysUserMapper;
65
     @Autowired private SysUserMapper sysUserMapper;
62
     @Autowired private SysDeptMapper sysDeptMapper;
66
     @Autowired private SysDeptMapper sysDeptMapper;
67
+    @Autowired private SysPostMapper sysPostMapper;
68
+    @Autowired private BasePositionMapper basePositionMapper;
63
 
69
 
64
     // 导入缓存(在导入开始时构建,导入结束后释放)
70
     // 导入缓存(在导入开始时构建,导入结束后释放)
65
     private ImportCache importCache;
71
     private ImportCache importCache;
@@ -156,25 +162,77 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
156
     // ════════════════════════════════════════════════════════════════
162
     // ════════════════════════════════════════════════════════════════
157
 
163
 
158
     /** 1. 部门监察问题记录表 → ledger_supervision_problem
164
     /** 1. 部门监察问题记录表 → ledger_supervision_problem
159
-     * R2: 时间(0) 区域(1) 工作点(2) 岗位(3) 责任人(4) 问题描述(5)
160
-     *     问题类型(6) 整改措施(7) 依据(8) 问题层级(9) 班组(10)
161
-     *     队室质控员(11) ... 附件(13)
165
+     * 导入顺序:时间(0) 区域(1) 工作点(2) 岗位(3) 责任人(4) 问题描述(5)
166
+     *          问题类型(6) 整改措施(7) 依据(8) 问题层级(9) 班组(10)
167
+     *          队室质控员(11) 质控推送队室负责人(12) 附件(13) 整改情况(14) 佐证材料(15)
168
+     *          发送至相关人员(16) 本月内发生问题次数(17) 上月质控问题超过三次人员(18)
169
+     *          检查人员(19) 分管质控经理(20) 录入时间(21) 部门培训教员(22) 队室内勤(23) 队室负责人(24)
162
      */
170
      */
163
     private int doSupervisionProblem(Sheet sheet, String batchNo, String username) {
171
     private int doSupervisionProblem(Sheet sheet, String batchNo, String username) {
164
         List<LedgerSupervisionProblem> list = new ArrayList<>();
172
         List<LedgerSupervisionProblem> list = new ArrayList<>();
165
         for (Object[] c : dataRows(sheet, 2)) {
173
         for (Object[] c : dataRows(sheet, 2)) {
166
             LedgerSupervisionProblem o = new LedgerSupervisionProblem();
174
             LedgerSupervisionProblem o = new LedgerSupervisionProblem();
167
-            o.setRecordDate(date(c, 0));
168
-            o.setLocation(str(c, 1));
169
-            o.setChannelNo(str(c, 2));
170
-            o.setInspectedName(str(c, 4));
171
-            o.setProblemDesc(str(c, 5));
172
-            o.setProblemType(str(c, 6));
173
-            o.setResultHandling(str(c, 7));
174
-            o.setRemark(str(c, 8));
175
-            o.setTeamName(str(c, 10));
176
-            o.setInspectorName(str(c, 11));
177
-            o.setEvidenceFile(str(c, 13));
175
+            
176
+            // 按导入顺序映射字段
177
+            o.setRecordDate(date(c, 0));        // 时间
178
+            o.setLocation(str(c, 1));           // 区域
179
+            o.setChannelNo(str(c, 2));          // 工作点
180
+            o.setPosition(str(c, 3));           // 岗位
181
+            String inspectedName = str(c, 4);   // 责任人
182
+            o.setInspectedName(inspectedName);
183
+            o.setProblemDesc(str(c, 5));        // 问题描述
184
+            o.setProblemType(str(c, 6));        // 问题类型
185
+            o.setResultHandling(str(c, 7));     // 整改措施
186
+            o.setBasis(str(c, 8));              // 依据
187
+            o.setProblemLevel(str(c, 9));       // 问题层级
188
+            o.setTeamName(str(c, 10));          // 班组
189
+            o.setQualityOfficer(str(c, 11));    // 队室质控员
190
+            o.setQualityPushLeader(str(c, 12)); // 质控推送队室负责人
191
+            o.setEvidenceFile(str(c, 13));      // 附件
192
+            o.setRectificationStatus(str(c, 14)); // 整改情况
193
+            o.setEvidenceMaterial(str(c, 15));  // 佐证材料
194
+            o.setSendToRelevant(str(c, 16));    // 发送至相关人员
195
+            o.setMonthlyProblemCount(integer(c, 17)); // 本月内发生问题次数
196
+            o.setLastMonthExceedThree(str(c, 18)); // 上月质控问题超过三次人员
197
+            o.setCheckPersonnel(str(c, 19));    // 检查人员
198
+            o.setManageQcManager(str(c, 20));   // 分管质控经理
199
+            o.setInputTime(date(c, 21));        // 录入时间
200
+            o.setDeptTrainingInstructor(str(c, 22)); // 部门培训教员
201
+            o.setTeamInternalDuty(str(c, 23));  // 队室内勤
202
+            o.setTeamLeader(str(c, 24));        // 队室负责人
203
+            
204
+            // 根据责任人名称查找组织ID
205
+            if (inspectedName != null && !inspectedName.trim().isEmpty()) {
206
+                Map<String, Long> orgInfo = resolveOrgInfoByNameWithCache(inspectedName);
207
+                if (!orgInfo.isEmpty()) {
208
+                    o.setInspectedId(orgInfo.get("userId"));
209
+                    o.setDeptId(orgInfo.get("deptId"));
210
+                    o.setTeamId(orgInfo.get("teamId"));
211
+                    o.setGroupId(orgInfo.get("groupId"));
212
+                }
213
+            }
214
+            
215
+            // 根据岗位和区域查找对应ID
216
+            if (importCache != null) {
217
+                // 岗位ID
218
+                String positionName = o.getPosition();
219
+                if (positionName != null && !positionName.trim().isEmpty()) {
220
+                    Long positionId = importCache.getPositionIdByName(positionName.trim());
221
+                    if (positionId != null) {
222
+                        o.setPositionId(positionId);
223
+                    }
224
+                }
225
+                
226
+                // 区域ID
227
+                String areaName = o.getLocation();
228
+                if (areaName != null && !areaName.trim().isEmpty()) {
229
+                    Long areaId = importCache.getAreaIdByName(areaName.trim());
230
+                    if (areaId != null) {
231
+                        o.setAreaId(areaId);
232
+                    }
233
+                }
234
+            }
235
+            
178
             o.setImportBatch(batchNo);
236
             o.setImportBatch(batchNo);
179
             o.setSourceType("1");
237
             o.setSourceType("1");
180
             o.setCreateBy(username);
238
             o.setCreateBy(username);
@@ -296,28 +354,99 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
296
     }
354
     }
297
 
355
 
298
     /** 6. 安保测试记录表(部门)→ ledger_security_test
356
     /** 6. 安保测试记录表(部门)→ ledger_security_test
299
-     * R2: 时间(0) 区域→deptName(1) 通道→groupName(2) 测试项目(3) 被测人员(4) 被测岗位→testType(5)
300
-     *     测试物品→problemDesc(6) 图片→evidenceFile(7) 是否通过→testResult(8) 层级→scoreIndicator(9)
301
-     *     整改措施→resultHandling(10) 扣分(11) 整改材料→remark(12) 班组(13)
357
+     * 导入顺序:开展时间(0) 测试区域(1) 测试通道(2) 测试项目(3) 被测试人员(4) 被测试岗位(5)
358
+     *          测试物品(6) 开展项目图片或视频(7) 是否通过(8) 层级(9) 整改措施(10)
359
+     *          复查地点及时间(11) 整改材料(12) 班组(13) 推送队室质控员(14) 推送质控队长(15)
360
+     *          队室内勤(16) 点击推送至相关人员(17) 队室负责人(18)
302
      */
361
      */
303
     private int doSecurityTest(Sheet sheet, String batchNo, String username) {
362
     private int doSecurityTest(Sheet sheet, String batchNo, String username) {
304
         List<LedgerSecurityTest> list = new ArrayList<>();
363
         List<LedgerSecurityTest> list = new ArrayList<>();
305
         for (Object[] c : dataRows(sheet, 2)) {
364
         for (Object[] c : dataRows(sheet, 2)) {
306
             LedgerSecurityTest o = new LedgerSecurityTest();
365
             LedgerSecurityTest o = new LedgerSecurityTest();
307
-            o.setRecordDate(date(c, 0));
308
-            o.setDeptName(str(c, 1));
309
-            o.setGroupName(str(c, 2));
310
-            o.setTestItem(str(c, 3));
311
-            o.setTestedName(str(c, 4));
366
+            
367
+            // 按照新的导入顺序映射字段
368
+            o.setRecordDate(date(c, 0));  // 开展时间
369
+            o.setRegion(str(c, 1));       // 测试区域
370
+            o.setChannel(str(c, 2));      // 测试通道
371
+            o.setTestItem(str(c, 3));     // 测试项目
372
+            
373
+            // 被测试人员
374
+            String testedName = str(c, 4);
375
+            o.setTestedName(testedName);
376
+            
377
+            // 被测试岗位
312
             o.setTestType(str(c, 5));
378
             o.setTestType(str(c, 5));
379
+            
380
+            // 测试物品→problemDesc
313
             o.setProblemDesc(str(c, 6));
381
             o.setProblemDesc(str(c, 6));
382
+            
383
+            // 开展项目图片或视频→evidenceFile
314
             o.setEvidenceFile(str(c, 7));
384
             o.setEvidenceFile(str(c, 7));
385
+            
386
+            // 是否通过→testResult
315
             o.setTestResult(str(c, 8));
387
             o.setTestResult(str(c, 8));
388
+            
389
+            // 层级→scoreIndicator
316
             o.setScoreIndicator(str(c, 9));
390
             o.setScoreIndicator(str(c, 9));
391
+            
392
+            // 整改措施→resultHandling
317
             o.setResultHandling(str(c, 10));
393
             o.setResultHandling(str(c, 10));
318
-            o.setDeductScore(decimal(c, 11));
319
-            o.setRemark(str(c, 12));
320
-            o.setTeamName(str(c, 13));
394
+            
395
+            // 复查地点及时间
396
+            o.setReviewLocationTime(str(c, 11));
397
+            
398
+            // 整改材料
399
+            o.setReviewMaterial(str(c, 12));
400
+            
401
+            // 班组→teamName
402
+            String teamName = str(c, 13);
403
+            o.setTeamName(teamName);
404
+            
405
+            // 推送队室质控员
406
+            o.setPushTeamQc(str(c, 14));
407
+            
408
+            // 推送质控队长
409
+            o.setPushQcCaptain(str(c, 15));
410
+            
411
+            // 队室内勤
412
+            o.setTeamInternalDuty(str(c, 16));
413
+            
414
+            // 点击推送至相关人员
415
+            o.setPushToRelevant(str(c, 17));
416
+            
417
+            // 队室负责人
418
+            o.setTeamLeader(str(c, 18));
419
+            
420
+            // 使用缓存查找组织信息(根据被测人名称)
421
+            if (testedName != null && !testedName.trim().isEmpty()) {
422
+                Map<String, Long> orgInfo = resolveOrgInfoByNameWithCache(testedName);
423
+                if (!orgInfo.isEmpty()) {
424
+                    o.setTestedId(orgInfo.get("userId"));
425
+                    o.setDeptId(orgInfo.get("deptId"));
426
+                    o.setTeamId(orgInfo.get("teamId"));
427
+                    o.setGroupId(orgInfo.get("groupId"));
428
+                }
429
+            }
430
+            
431
+            // 根据岗位名称和区域名称查找ID
432
+            if (importCache != null) {
433
+                String positionName = str(c, 5);  // 被测试岗位
434
+                if (positionName != null && !positionName.trim().isEmpty()) {
435
+                    Long positionId = importCache.getPositionIdByName(positionName.trim());
436
+                    if (positionId != null) {
437
+                        o.setPositionId(positionId);
438
+                    }
439
+                }
440
+                
441
+                String areaName = str(c, 1);  // 测试区域
442
+                if (areaName != null && !areaName.trim().isEmpty()) {
443
+                    Long areaId = importCache.getAreaIdByName(areaName.trim());
444
+                    if (areaId != null) {
445
+                        o.setAreaId(areaId);
446
+                    }
447
+                }
448
+            }
449
+            
321
             o.setImportBatch(batchNo);
450
             o.setImportBatch(batchNo);
322
             o.setSourceType("1");
451
             o.setSourceType("1");
323
             o.setCreateBy(username);
452
             o.setCreateBy(username);
@@ -390,10 +519,44 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
390
             o.setRecordDate(date(c, 0));
519
             o.setRecordDate(date(c, 0));
391
             o.setEventDesc(str(c, 1));
520
             o.setEventDesc(str(c, 1));
392
             o.setEventType(str(c, 2));
521
             o.setEventType(str(c, 2));
393
-            o.setResponsibleName(str(c, 4));
522
+            o.setFlightNo(str(c, 3));
523
+            String responsibleName = str(c, 4);
524
+            o.setResponsibleName(responsibleName);
394
             o.setTeamName(str(c, 5));
525
             o.setTeamName(str(c, 5));
395
-            o.setEvidenceFile(str(c, 10));
396
-            o.setRemark(str(c, 8));
526
+            o.setInvolvedItems(str(c, 6));
527
+            o.setPosition(str(c, 7));
528
+            o.setArea(str(c, 8));
529
+            o.setChannelNo(str(c, 9));
530
+            o.setImage(str(c, 10));
531
+            
532
+            // 使用缓存查找组织信息
533
+            Map<String, Long> orgInfo = resolveOrgInfoByNameWithCache(responsibleName);
534
+            if (!orgInfo.isEmpty()) {
535
+                o.setResponsibleId(orgInfo.get("userId"));
536
+                o.setDeptId(orgInfo.get("deptId"));
537
+                o.setTeamId(orgInfo.get("teamId"));
538
+                o.setGroupId(orgInfo.get("groupId"));
539
+            }
540
+            
541
+            // 根据岗位名称和区域名称查找ID
542
+            if (importCache != null) {
543
+                String positionName = str(c, 7);
544
+                if (positionName != null && !positionName.trim().isEmpty()) {
545
+                    Long positionId = importCache.getPositionIdByName(positionName.trim());
546
+                    if (positionId != null) {
547
+                        o.setPositionId(positionId);
548
+                    }
549
+                }
550
+                
551
+                String areaName = str(c, 8);
552
+                if (areaName != null && !areaName.trim().isEmpty()) {
553
+                    Long areaId = importCache.getAreaIdByName(areaName.trim());
554
+                    if (areaId != null) {
555
+                        o.setAreaId(areaId);
556
+                    }
557
+                }
558
+            }
559
+            
397
             o.setImportBatch(batchNo);
560
             o.setImportBatch(batchNo);
398
             o.setSourceType("1");
561
             o.setSourceType("1");
399
             o.setCreateBy(username);
562
             o.setCreateBy(username);
@@ -448,6 +611,25 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
448
                 o.setTeamId(orgInfo.get("teamId"));
611
                 o.setTeamId(orgInfo.get("teamId"));
449
                 o.setGroupId(orgInfo.get("groupId"));
612
                 o.setGroupId(orgInfo.get("groupId"));
450
             }
613
             }
614
+            
615
+            // 根据岗位名称和工作区域名称查找ID
616
+            if (importCache != null) {
617
+                String positionName = str(c, 7);
618
+                if (positionName != null && !positionName.trim().isEmpty()) {
619
+                    Long positionId = importCache.getPositionIdByName(positionName.trim());
620
+                    if (positionId != null) {
621
+                        o.setPositionId(positionId);
622
+                    }
623
+                }
624
+                
625
+                String areaName = str(c, 4);
626
+                if (areaName != null && !areaName.trim().isEmpty()) {
627
+                    Long areaId = importCache.getAreaIdByName(areaName.trim());
628
+                    if (areaId != null) {
629
+                        o.setAreaId(areaId);
630
+                    }
631
+                }
632
+            }
451
                 
633
                 
452
             o.setImportBatch(batchNo);
634
             o.setImportBatch(batchNo);
453
             o.setSourceType("1");
635
             o.setSourceType("1");
@@ -920,10 +1102,15 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
920
     private static class ImportCache {
1102
     private static class ImportCache {
921
         private final Map<String, SysUser> userCache;      // Map<昵称, 用户>
1103
         private final Map<String, SysUser> userCache;      // Map<昵称, 用户>
922
         private final Map<Long, SysDept> deptCache;        // Map<部门ID, 部门>
1104
         private final Map<Long, SysDept> deptCache;        // Map<部门ID, 部门>
1105
+        private final Map<String, Long> positionCache;     // Map<岗位名称, 岗位ID>
1106
+        private final Map<String, Long> areaCache;         // Map<区域名称, 区域ID>
923
 
1107
 
924
-        public ImportCache(Map<String, SysUser> userCache, Map<Long, SysDept> deptCache) {
1108
+        public ImportCache(Map<String, SysUser> userCache, Map<Long, SysDept> deptCache,
1109
+                          Map<String, Long> positionCache, Map<String, Long> areaCache) {
925
             this.userCache = userCache;
1110
             this.userCache = userCache;
926
             this.deptCache = deptCache;
1111
             this.deptCache = deptCache;
1112
+            this.positionCache = positionCache;
1113
+            this.areaCache = areaCache;
927
         }
1114
         }
928
 
1115
 
929
         public SysUser getUserByNickName(String nickName) {
1116
         public SysUser getUserByNickName(String nickName) {
@@ -933,6 +1120,14 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
933
         public SysDept getDeptById(Long deptId) {
1120
         public SysDept getDeptById(Long deptId) {
934
             return deptCache.get(deptId);
1121
             return deptCache.get(deptId);
935
         }
1122
         }
1123
+
1124
+        public Long getPositionIdByName(String positionName) {
1125
+            return positionCache.get(positionName);
1126
+        }
1127
+
1128
+        public Long getAreaIdByName(String areaName) {
1129
+            return areaCache.get(areaName);
1130
+        }
936
     }
1131
     }
937
 
1132
 
938
     // ════════════════════════════════════════════════════════════════
1133
     // ════════════════════════════════════════════════════════════════
@@ -1019,8 +1214,33 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
1019
             }
1214
             }
1020
         }
1215
         }
1021
 
1216
 
1217
+        // 构建岗位缓存:Map<岗位名称, 岗位ID>
1218
+        Map<String, Long> positionCache = new HashMap<>();
1219
+        List<SysPost> allPosts = sysPostMapper.selectPostAll();
1220
+        if (allPosts != null) {
1221
+            for (SysPost post : allPosts) {
1222
+                if (post.getPostName() != null && !post.getPostName().trim().isEmpty()) {
1223
+                    positionCache.put(post.getPostName().trim(), post.getPostId());
1224
+                }
1225
+            }
1226
+        }
1227
+
1228
+        // 构建区域缓存:Map<区域名称, 区域ID>
1229
+        // 从base_position表查询position_type='REGIONAL'的区域
1230
+        Map<String, Long> areaCache = new HashMap<>();
1231
+        BasePosition queryPosition = new BasePosition();
1232
+        queryPosition.setPositionType("REGIONAL");
1233
+        List<BasePosition> allAreas = basePositionMapper.selectBasePositionList(queryPosition);
1234
+        if (allAreas != null) {
1235
+            for (BasePosition area : allAreas) {
1236
+                if (area.getName() != null && !area.getName().trim().isEmpty()) {
1237
+                    areaCache.put(area.getName().trim(), area.getId());
1238
+                }
1239
+            }
1240
+        }
1241
+
1022
         // 创建统一缓存对象
1242
         // 创建统一缓存对象
1023
-        this.importCache = new ImportCache(userCache, deptCache);
1243
+        this.importCache = new ImportCache(userCache, deptCache, positionCache, areaCache);
1024
     }
1244
     }
1025
 
1245
 
1026
     /**
1246
     /**

+ 4 - 3
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerSyncServiceImpl.java

@@ -182,8 +182,8 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
182
             String src = "supervision_problem:" + row.getId();
182
             String src = "supervision_problem:" + row.getId();
183
             if (existsBySrc(src)) { skip++; continue; }
183
             if (existsBySrc(src)) { skip++; continue; }
184
             if (!hasName(row.getInspectedName())) { skip++; continue; }
184
             if (!hasName(row.getInspectedName())) { skip++; continue; }
185
-            // 按问题层级选取L3指标和默认分值
186
-            String level = row.getProblemType() != null ? row.getProblemType() : "";
185
+            // 按问题层级选取L3指标和默认分值(修正:取problemLevel字段)
186
+            String level = row.getProblemLevel() != null ? row.getProblemLevel() : "";
187
             long l3Id; BigDecimal defaultSv;
187
             long l3Id; BigDecimal defaultSv;
188
             if (level.contains("上级")) { l3Id = IND_SUPERVISION_L3_LEADER; defaultSv = BigDecimal.valueOf(-1.20); }
188
             if (level.contains("上级")) { l3Id = IND_SUPERVISION_L3_LEADER; defaultSv = BigDecimal.valueOf(-1.20); }
189
             else if (level.contains("部门")) { l3Id = IND_SUPERVISION_L3_DEPT; defaultSv = BigDecimal.valueOf(-0.80); }
189
             else if (level.contains("部门")) { l3Id = IND_SUPERVISION_L3_DEPT; defaultSv = BigDecimal.valueOf(-0.80); }
@@ -234,7 +234,8 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
234
             if (existsBySrc(src)) { skip++; continue; }
234
             if (existsBySrc(src)) { skip++; continue; }
235
             if (!"未通过".equals(row.getTestResult())) { skip++; continue; }
235
             if (!"未通过".equals(row.getTestResult())) { skip++; continue; }
236
             if (!hasName(row.getTestedName())) { skip++; continue; }
236
             if (!hasName(row.getTestedName())) { skip++; continue; }
237
-            String level = row.getTestType() != null ? row.getTestType() : "";
237
+            // 取层级字段(scoreIndicator),而不是testType
238
+            String level = row.getScoreIndicator() != null ? row.getScoreIndicator() : "";
238
             long l3Id;
239
             long l3Id;
239
             if (level.contains("局方")) { l3Id = IND_SECTEST_L3_GOV; }
240
             if (level.contains("局方")) { l3Id = IND_SECTEST_L3_GOV; }
240
             else if (level.contains("公司")) { l3Id = IND_SECTEST_L3_CORP; }
241
             else if (level.contains("公司")) { l3Id = IND_SECTEST_L3_CORP; }

+ 23 - 2
airport-ledger/src/main/resources/mapper/ledger/LedgerSecurityTestMapper.xml

@@ -5,16 +5,32 @@
5
     <resultMap id="BaseResultMap" type="com.sundot.airport.ledger.domain.LedgerSecurityTest">
5
     <resultMap id="BaseResultMap" type="com.sundot.airport.ledger.domain.LedgerSecurityTest">
6
         <id property="id" column="id" />
6
         <id property="id" column="id" />
7
         <result property="recordDate" column="record_date" />
7
         <result property="recordDate" column="record_date" />
8
+        <result property="region" column="region" />
9
+        <result property="channel" column="channel" />
8
         <result property="deptName" column="dept_name" />
10
         <result property="deptName" column="dept_name" />
11
+        <result property="deptId" column="dept_id" />
9
         <result property="teamName" column="team_name" />
12
         <result property="teamName" column="team_name" />
13
+        <result property="teamId" column="team_id" />
10
         <result property="groupName" column="group_name" />
14
         <result property="groupName" column="group_name" />
15
+        <result property="groupId" column="group_id" />
16
+        <result property="areaId" column="area_id" />
11
         <result property="testerName" column="tester_name" />
17
         <result property="testerName" column="tester_name" />
18
+        <result property="testerId" column="tester_id" />
12
         <result property="testedName" column="tested_name" />
19
         <result property="testedName" column="tested_name" />
20
+        <result property="testedId" column="tested_id" />
13
         <result property="testType" column="test_type" />
21
         <result property="testType" column="test_type" />
22
+        <result property="positionId" column="position_id" />
14
         <result property="testItem" column="test_item" />
23
         <result property="testItem" column="test_item" />
15
         <result property="testResult" column="test_result" />
24
         <result property="testResult" column="test_result" />
16
         <result property="problemDesc" column="problem_desc" />
25
         <result property="problemDesc" column="problem_desc" />
17
         <result property="resultHandling" column="result_handling" />
26
         <result property="resultHandling" column="result_handling" />
27
+        <result property="reviewLocationTime" column="review_location_time" />
28
+        <result property="reviewMaterial" column="review_material" />
29
+        <result property="pushTeamQc" column="push_team_qc" />
30
+        <result property="pushQcCaptain" column="push_qc_captain" />
31
+        <result property="teamInternalDuty" column="team_internal_duty" />
32
+        <result property="pushToRelevant" column="push_to_relevant" />
33
+        <result property="teamLeader" column="team_leader" />
18
         <result property="deductScore" column="deduct_score" />
34
         <result property="deductScore" column="deduct_score" />
19
         <result property="addScore" column="add_score" />
35
         <result property="addScore" column="add_score" />
20
         <result property="scoreDimension" column="score_dimension" />
36
         <result property="scoreDimension" column="score_dimension" />
@@ -22,14 +38,19 @@
22
         <result property="evidenceFile" column="evidence_file" />
38
         <result property="evidenceFile" column="evidence_file" />
23
         <result property="remark" column="remark" />
39
         <result property="remark" column="remark" />
24
         <result property="importBatch" column="import_batch" />
40
         <result property="importBatch" column="import_batch" />
25
-        <result property="sourceType" column="source_type" />        <result property="createBy"   column="create_by"   />
41
+        <result property="sourceType" column="source_type" />
42
+        <result property="createBy"   column="create_by"   />
26
         <result property="createTime" column="create_time" />
43
         <result property="createTime" column="create_time" />
27
         <result property="updateBy"   column="update_by"   />
44
         <result property="updateBy"   column="update_by"   />
28
         <result property="updateTime" column="update_time" />
45
         <result property="updateTime" column="update_time" />
29
     </resultMap>
46
     </resultMap>
30
 
47
 
31
     <sql id="selectVo">
48
     <sql id="selectVo">
32
-        SELECT id, record_date,dept_name,team_name,group_name,tester_name,tested_name,test_type,test_item,test_result,problem_desc,result_handling,deduct_score,add_score,score_dimension,score_indicator,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time
49
+        SELECT id, record_date, region, channel, dept_name, dept_id, team_name, team_id, group_name, group_id, area_id,
50
+               tester_name, tester_id, tested_name, tested_id, test_type, position_id, test_item, test_result,
51
+               problem_desc, result_handling, review_location_time, review_material, push_team_qc, push_qc_captain,
52
+               team_internal_duty, push_to_relevant, team_leader, deduct_score, add_score, score_dimension,
53
+               score_indicator, evidence_file, remark, import_batch, source_type, create_by, create_time, update_by, update_time
33
         FROM ledger_security_test
54
         FROM ledger_security_test
34
         WHERE del_flag = '0'
55
         WHERE del_flag = '0'
35
     </sql>
56
     </sql>

File diff suppressed because it is too large
+ 3 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerSeizureStatsMapper.xml


+ 28 - 4
airport-ledger/src/main/resources/mapper/ledger/LedgerSupervisionProblemMapper.xml

@@ -6,15 +6,37 @@
6
         <id     property="id"               column="id"               />
6
         <id     property="id"               column="id"               />
7
         <result property="recordDate"       column="record_date"      />
7
         <result property="recordDate"       column="record_date"      />
8
         <result property="deptName"         column="dept_name"        />
8
         <result property="deptName"         column="dept_name"        />
9
+        <result property="deptId"           column="dept_id"          />
9
         <result property="teamName"         column="team_name"        />
10
         <result property="teamName"         column="team_name"        />
11
+        <result property="teamId"           column="team_id"          />
10
         <result property="groupName"        column="group_name"       />
12
         <result property="groupName"        column="group_name"       />
13
+        <result property="groupId"          column="group_id"         />
14
+        <result property="areaId"           column="area_id"          />
11
         <result property="inspectorName"    column="inspector_name"   />
15
         <result property="inspectorName"    column="inspector_name"   />
12
         <result property="inspectedName"    column="inspected_name"   />
16
         <result property="inspectedName"    column="inspected_name"   />
17
+        <result property="inspectedId"      column="inspected_id"     />
13
         <result property="problemType"      column="problem_type"     />
18
         <result property="problemType"      column="problem_type"     />
19
+        <result property="problemLevel"     column="problem_level"    />
14
         <result property="problemDesc"      column="problem_desc"     />
20
         <result property="problemDesc"      column="problem_desc"     />
15
         <result property="location"         column="location"         />
21
         <result property="location"         column="location"         />
16
         <result property="channelNo"        column="channel_no"       />
22
         <result property="channelNo"        column="channel_no"       />
23
+        <result property="position"         column="position"         />
24
+        <result property="positionId"       column="position_id"      />
17
         <result property="resultHandling"   column="result_handling"  />
25
         <result property="resultHandling"   column="result_handling"  />
26
+        <result property="basis"            column="basis"            />
27
+        <result property="qualityOfficer"   column="quality_officer"  />
28
+        <result property="qualityPushLeader" column="quality_push_leader" />
29
+        <result property="rectificationStatus" column="rectification_status" />
30
+        <result property="evidenceMaterial" column="evidence_material" />
31
+        <result property="sendToRelevant"   column="send_to_relevant" />
32
+        <result property="monthlyProblemCount" column="monthly_problem_count" />
33
+        <result property="lastMonthExceedThree" column="last_month_exceed_three" />
34
+        <result property="checkPersonnel"   column="check_personnel"  />
35
+        <result property="manageQcManager"  column="manage_qc_manager" />
36
+        <result property="inputTime"        column="input_time"       />
37
+        <result property="deptTrainingInstructor" column="dept_training_instructor" />
38
+        <result property="teamInternalDuty" column="team_internal_duty" />
39
+        <result property="teamLeader"       column="team_leader"      />
18
         <result property="deductScore"      column="deduct_score"     />
40
         <result property="deductScore"      column="deduct_score"     />
19
         <result property="addScore"         column="add_score"        />
41
         <result property="addScore"         column="add_score"        />
20
         <result property="scoreDimension"   column="score_dimension"  />
42
         <result property="scoreDimension"   column="score_dimension"  />
@@ -30,10 +52,12 @@
30
     </resultMap>
52
     </resultMap>
31
 
53
 
32
     <sql id="selectVo">
54
     <sql id="selectVo">
33
-        SELECT id, record_date, dept_name, team_name, group_name,
34
-               inspector_name, inspected_name, problem_type, problem_desc, location,
35
-               channel_no, result_handling, deduct_score, add_score,
36
-               score_dimension, score_indicator, evidence_file, remark,
55
+        SELECT id, record_date, dept_name, dept_id, team_name, team_id, group_name, group_id, area_id,
56
+               inspector_name, inspected_name, inspected_id, problem_type, problem_level, problem_desc, location,
57
+               channel_no, position, position_id, result_handling, basis, quality_officer, quality_push_leader,
58
+               rectification_status, evidence_material, send_to_relevant, monthly_problem_count, last_month_exceed_three,
59
+               check_personnel, manage_qc_manager, input_time, dept_training_instructor, team_internal_duty, team_leader,
60
+               deduct_score, add_score, score_dimension, score_indicator, evidence_file, remark,
37
                import_batch, source_type, create_by, create_time, update_by, update_time
61
                import_batch, source_type, create_by, create_time, update_by, update_time
38
         FROM ledger_supervision_problem
62
         FROM ledger_supervision_problem
39
         WHERE del_flag = '0'
63
         WHERE del_flag = '0'

+ 17 - 2
airport-ledger/src/main/resources/mapper/ledger/LedgerUnsafeEventMapper.xml

@@ -5,24 +5,39 @@
5
     <resultMap id="BaseResultMap" type="com.sundot.airport.ledger.domain.LedgerUnsafeEvent">
5
     <resultMap id="BaseResultMap" type="com.sundot.airport.ledger.domain.LedgerUnsafeEvent">
6
         <id property="id" column="id" />
6
         <id property="id" column="id" />
7
         <result property="recordDate" column="record_date" />
7
         <result property="recordDate" column="record_date" />
8
+        <result property="flightNo" column="flight_no" />
8
         <result property="deptName" column="dept_name" />
9
         <result property="deptName" column="dept_name" />
10
+        <result property="deptId" column="dept_id" />
9
         <result property="teamName" column="team_name" />
11
         <result property="teamName" column="team_name" />
12
+        <result property="teamInternalDuty" column="team_internal_duty" />
13
+        <result property="teamId" column="team_id" />
14
+        <result property="groupName" column="group_name" />
15
+        <result property="groupId" column="group_id" />
10
         <result property="responsibleName" column="responsible_name" />
16
         <result property="responsibleName" column="responsible_name" />
17
+        <result property="responsibleId" column="responsible_id" />
11
         <result property="eventType" column="event_type" />
18
         <result property="eventType" column="event_type" />
19
+        <result property="involvedItems" column="involved_items" />
20
+        <result property="position" column="position" />
21
+        <result property="positionId" column="position_id" />
22
+        <result property="area" column="area" />
23
+        <result property="areaId" column="area_id" />
24
+        <result property="channelNo" column="channel_no" />
25
+        <result property="image" column="image" />
12
         <result property="eventDesc" column="event_desc" />
26
         <result property="eventDesc" column="event_desc" />
13
         <result property="resultHandling" column="result_handling" />
27
         <result property="resultHandling" column="result_handling" />
14
         <result property="deductScore" column="deduct_score" />
28
         <result property="deductScore" column="deduct_score" />
15
         <result property="evidenceFile" column="evidence_file" />
29
         <result property="evidenceFile" column="evidence_file" />
16
         <result property="remark" column="remark" />
30
         <result property="remark" column="remark" />
17
         <result property="importBatch" column="import_batch" />
31
         <result property="importBatch" column="import_batch" />
18
-        <result property="sourceType" column="source_type" />        <result property="createBy"   column="create_by"   />
32
+        <result property="sourceType" column="source_type" />
33
+        <result property="createBy"   column="create_by"   />
19
         <result property="createTime" column="create_time" />
34
         <result property="createTime" column="create_time" />
20
         <result property="updateBy"   column="update_by"   />
35
         <result property="updateBy"   column="update_by"   />
21
         <result property="updateTime" column="update_time" />
36
         <result property="updateTime" column="update_time" />
22
     </resultMap>
37
     </resultMap>
23
 
38
 
24
     <sql id="selectVo">
39
     <sql id="selectVo">
25
-        SELECT id, record_date,dept_name,team_name,responsible_name,event_type,event_desc,result_handling,deduct_score,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time
40
+        SELECT id, record_date, flight_no, dept_name, dept_id, team_name, team_internal_duty, team_id, group_name, group_id, responsible_name, responsible_id, event_type, involved_items, position, position_id, area, area_id, channel_no, image, event_desc, result_handling, deduct_score, evidence_file, remark, import_batch, source_type, create_by, create_time, update_by, update_time
26
         FROM ledger_unsafe_event
41
         FROM ledger_unsafe_event
27
         WHERE del_flag = '0'
42
         WHERE del_flag = '0'
28
     </sql>
43
     </sql>