瀏覽代碼

ledger_realtime_interception字段删除和调整、相关代码调整、一键导入功能导入模版调整调整

wangxx 2 周之前
父節點
當前提交
a39ed5fe93

+ 1 - 4
airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/LedgerTemplateController.java

@@ -57,10 +57,7 @@ public class LedgerTemplateController extends BaseController {
57 57
         nm.put("realtimeInterception", "部门实时质控拦截情况记录表");
58 58
         hm.put("realtimeInterception", 2);
59 59
         cm.put("realtimeInterception", new String[]{
60
-            "时间","区域","工作点","岗位","责任人","实时质控拦截物品","个数","问题类型","整改措施","问题层级",
61
-            "班组","附件","问题类别","个人复盘","队室复盘","队室质控员","质控推送队室负责人","开机年限",
62
-            "责任人开机年龄","发送至相关人员","本月内发生问题次数","上月发生次数","实时图像漏检难易度",
63
-            "检查人员","部门培训教员","分管质控经理","队室内勤","备注","队室负责人"
60
+            "时间","区域","工作点","岗位","责任人","实时质控拦截物品","个数","问题层级","附件","检查人员"
64 61
         });
65 62
 
66 63
         // 4. 服务巡查 (22列)

+ 9 - 173
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerRealtimeInterception.java

@@ -21,23 +21,18 @@ public class LedgerRealtimeInterception extends BaseEntity {
21 21
     private Long id;
22 22
 
23 23
     @JsonFormat(pattern = "yyyy-MM-dd")
24
-    @Excel(name = "记录日期", width = 20, dateFormat = "yyyy-MM-dd")
24
+    @Excel(name = "时间", width = 20, dateFormat = "yyyy-MM-dd")
25 25
     private Date recordDate;
26 26
 
27
-    @Excel(name = "记录时间")
28
-    private String recordTime;
29
-
30 27
     @Excel(name = "部门名称")
31 28
     private String deptName;
32 29
 
33 30
     private Long deptId;
34 31
 
35
-    @Excel(name = "队室/班组")
36 32
     private String teamName;
37 33
 
38 34
     private Long teamId;
39 35
 
40
-    @Excel(name = "小组")
41 36
     private String groupName;
42 37
 
43 38
     private Long groupId;
@@ -52,100 +47,28 @@ public class LedgerRealtimeInterception extends BaseEntity {
52 47
 
53 48
     private Long positionId;
54 49
 
55
-    @Excel(name = "查获人")
50
+    @Excel(name = "责任人")
56 51
     private String inspectorName;
57 52
 
58 53
     private Long inspectorId;
59 54
 
60
-    @Excel(name = "通道号")
55
+    @Excel(name = "工作点")
61 56
     private String channelNo;
62 57
 
63
-    @Excel(name = "旅客姓名")
64
-    private String passengerName;
65
-
66
-    @Excel(name = "证件号码")
67
-    private String idCardNo;
68
-
69
-    @Excel(name = "航班号")
70
-    private String flightNo;
71
-
72
-    @Excel(name = "物品类别")
73
-    private String itemCategory;
74
-
75
-    @Excel(name = "物品名称")
58
+    @Excel(name = "实时质控拦截物品")
76 59
     private String itemName;
77 60
 
78
-    @Excel(name = "数")
61
+    @Excel(name = "个数")
79 62
     private Integer itemQuantity;
80 63
 
81
-    @Excel(name = "重量(kg)")
82
-    private BigDecimal itemWeight;
83
-
84
-    @Excel(name = "处置方式")
85
-    private String handlingMethod;
86
-
87
-    @Excel(name = "处理结果")
88
-    private String resultHandling;
89
-
90
-    @Excel(name = "问题类型")
91
-    private String problemType;
92
-
93
-    @Excel(name = "整改措施")
94
-    private String rectificationMeasures;
95
-
96 64
     @Excel(name = "问题层级")
97 65
     private String problemLevel;
98 66
 
99
-    @Excel(name = "附件")
100
-    private String attachment;
101
-
102
-    @Excel(name = "问题类别")
103
-    private String problemCategory;
104
-
105
-    @Excel(name = "个人复盘")
106
-    private String personalReview;
107
-
108
-    @Excel(name = "队室复盘")
109
-    private String teamReview;
110
-
111
-    @Excel(name = "队室质控员")
112
-    private String qualityOfficer;
113
-
114
-    @Excel(name = "质控推送队室负责人")
115
-    private String qualityPushLeader;
116
-
117
-    @Excel(name = "开机年限")
118
-    private String operationYears;
119
-
120
-    @Excel(name = "责任人开机年龄")
121
-    private String responsibleOperationAge;
122
-
123
-    @Excel(name = "发送至相关人员")
124
-    private String sendToRelevant;
125
-
126
-    @Excel(name = "本月内发生问题次数")
127
-    private Integer monthlyProblemCount;
128
-
129
-    @Excel(name = "上月质控问题发生次数")
130
-    private Integer lastMonthProblemCount;
131
-
132
-    @Excel(name = "实时图像漏检难易度")
133
-    private String imageMissDifficulty;
134
-
135 67
     @Excel(name = "检查人员")
136 68
     private String checkPersonnel;
137 69
 
138
-    @Excel(name = "部门培训教员")
139
-    private String deptTrainingInstructor;
140
-
141
-    @Excel(name = "分管质控经理")
142
-    private String manageQcManager;
143
-
144
-    @Excel(name = "队室内勤")
145
-    private String teamInternalDuty;
146
-
147
-    @Excel(name = "队室负责人")
148
-    private String teamLeader;
70
+    @Excel(name = "附件")
71
+    private String evidenceFile;
149 72
 
150 73
     @Excel(name = "扣分")
151 74
     private BigDecimal deductScore;
@@ -159,12 +82,6 @@ public class LedgerRealtimeInterception extends BaseEntity {
159 82
     @Excel(name = "评分指标")
160 83
     private String scoreIndicator;
161 84
 
162
-    @Excel(name = "佐证附件")
163
-    private String evidenceFile;
164
-
165
-    @Excel(name = "备注")
166
-    private String remark;
167
-
168 85
     private String importBatch;
169 86
 
170 87
     @Excel(name = "数据来源")
@@ -179,9 +96,6 @@ public class LedgerRealtimeInterception extends BaseEntity {
179 96
     public Date getRecordDate() { return recordDate; }
180 97
     public void setRecordDate(Date recordDate) { this.recordDate = recordDate; }
181 98
 
182
-    public String getRecordTime() { return recordTime; }
183
-    public void setRecordTime(String recordTime) { this.recordTime = recordTime; }
184
-
185 99
     public String getDeptName() { return deptName; }
186 100
     public void setDeptName(String deptName) { this.deptName = deptName; }
187 101
 
@@ -221,92 +135,20 @@ public class LedgerRealtimeInterception extends BaseEntity {
221 135
     public String getChannelNo() { return channelNo; }
222 136
     public void setChannelNo(String channelNo) { this.channelNo = channelNo; }
223 137
 
224
-    public String getPassengerName() { return passengerName; }
225
-    public void setPassengerName(String passengerName) { this.passengerName = passengerName; }
226
-
227
-    public String getIdCardNo() { return idCardNo; }
228
-    public void setIdCardNo(String idCardNo) { this.idCardNo = idCardNo; }
229
-
230
-    public String getFlightNo() { return flightNo; }
231
-    public void setFlightNo(String flightNo) { this.flightNo = flightNo; }
232
-
233
-    public String getItemCategory() { return itemCategory; }
234
-    public void setItemCategory(String itemCategory) { this.itemCategory = itemCategory; }
235
-
236 138
     public String getItemName() { return itemName; }
237 139
     public void setItemName(String itemName) { this.itemName = itemName; }
238 140
 
239 141
     public Integer getItemQuantity() { return itemQuantity; }
240 142
     public void setItemQuantity(Integer itemQuantity) { this.itemQuantity = itemQuantity; }
241 143
 
242
-    public BigDecimal getItemWeight() { return itemWeight; }
243
-    public void setItemWeight(BigDecimal itemWeight) { this.itemWeight = itemWeight; }
244
-
245
-    public String getHandlingMethod() { return handlingMethod; }
246
-    public void setHandlingMethod(String handlingMethod) { this.handlingMethod = handlingMethod; }
247
-
248
-    public String getResultHandling() { return resultHandling; }
249
-    public void setResultHandling(String resultHandling) { this.resultHandling = resultHandling; }
250
-
251
-    public String getProblemType() { return problemType; }
252
-    public void setProblemType(String problemType) { this.problemType = problemType; }
253
-
254
-    public String getRectificationMeasures() { return rectificationMeasures; }
255
-    public void setRectificationMeasures(String rectificationMeasures) { this.rectificationMeasures = rectificationMeasures; }
256
-
257 144
     public String getProblemLevel() { return problemLevel; }
258 145
     public void setProblemLevel(String problemLevel) { this.problemLevel = problemLevel; }
259 146
 
260
-    public String getAttachment() { return attachment; }
261
-    public void setAttachment(String attachment) { this.attachment = attachment; }
262
-
263
-    public String getProblemCategory() { return problemCategory; }
264
-    public void setProblemCategory(String problemCategory) { this.problemCategory = problemCategory; }
265
-
266
-    public String getPersonalReview() { return personalReview; }
267
-    public void setPersonalReview(String personalReview) { this.personalReview = personalReview; }
268
-
269
-    public String getTeamReview() { return teamReview; }
270
-    public void setTeamReview(String teamReview) { this.teamReview = teamReview; }
271
-
272
-    public String getQualityOfficer() { return qualityOfficer; }
273
-    public void setQualityOfficer(String qualityOfficer) { this.qualityOfficer = qualityOfficer; }
274
-
275
-    public String getQualityPushLeader() { return qualityPushLeader; }
276
-    public void setQualityPushLeader(String qualityPushLeader) { this.qualityPushLeader = qualityPushLeader; }
277
-
278
-    public String getOperationYears() { return operationYears; }
279
-    public void setOperationYears(String operationYears) { this.operationYears = operationYears; }
280
-
281
-    public String getResponsibleOperationAge() { return responsibleOperationAge; }
282
-    public void setResponsibleOperationAge(String responsibleOperationAge) { this.responsibleOperationAge = responsibleOperationAge; }
283
-
284
-    public String getSendToRelevant() { return sendToRelevant; }
285
-    public void setSendToRelevant(String sendToRelevant) { this.sendToRelevant = sendToRelevant; }
286
-
287
-    public Integer getMonthlyProblemCount() { return monthlyProblemCount; }
288
-    public void setMonthlyProblemCount(Integer monthlyProblemCount) { this.monthlyProblemCount = monthlyProblemCount; }
289
-
290
-    public Integer getLastMonthProblemCount() { return lastMonthProblemCount; }
291
-    public void setLastMonthProblemCount(Integer lastMonthProblemCount) { this.lastMonthProblemCount = lastMonthProblemCount; }
292
-
293
-    public String getImageMissDifficulty() { return imageMissDifficulty; }
294
-    public void setImageMissDifficulty(String imageMissDifficulty) { this.imageMissDifficulty = imageMissDifficulty; }
295
-
296 147
     public String getCheckPersonnel() { return checkPersonnel; }
297 148
     public void setCheckPersonnel(String checkPersonnel) { this.checkPersonnel = checkPersonnel; }
298 149
 
299
-    public String getDeptTrainingInstructor() { return deptTrainingInstructor; }
300
-    public void setDeptTrainingInstructor(String deptTrainingInstructor) { this.deptTrainingInstructor = deptTrainingInstructor; }
301
-
302
-    public String getManageQcManager() { return manageQcManager; }
303
-    public void setManageQcManager(String manageQcManager) { this.manageQcManager = manageQcManager; }
304
-
305
-    public String getTeamInternalDuty() { return teamInternalDuty; }
306
-    public void setTeamInternalDuty(String teamInternalDuty) { this.teamInternalDuty = teamInternalDuty; }
307
-
308
-    public String getTeamLeader() { return teamLeader; }
309
-    public void setTeamLeader(String teamLeader) { this.teamLeader = teamLeader; }
150
+    public String getEvidenceFile() { return evidenceFile; }
151
+    public void setEvidenceFile(String evidenceFile) { this.evidenceFile = evidenceFile; }
310 152
 
311 153
     public BigDecimal getDeductScore() { return deductScore; }
312 154
     public void setDeductScore(BigDecimal deductScore) { this.deductScore = deductScore; }
@@ -320,12 +162,6 @@ public class LedgerRealtimeInterception extends BaseEntity {
320 162
     public String getScoreIndicator() { return scoreIndicator; }
321 163
     public void setScoreIndicator(String scoreIndicator) { this.scoreIndicator = scoreIndicator; }
322 164
 
323
-    public String getEvidenceFile() { return evidenceFile; }
324
-    public void setEvidenceFile(String evidenceFile) { this.evidenceFile = evidenceFile; }
325
-
326
-    public String getRemark() { return remark; }
327
-    public void setRemark(String remark) { this.remark = remark; }
328
-
329 165
     public String getImportBatch() { return importBatch; }
330 166
     public void setImportBatch(String importBatch) { this.importBatch = importBatch; }
331 167
 

+ 13 - 33
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerCombinedImportServiceImpl.java

@@ -324,39 +324,19 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
324 324
         List<LedgerRealtimeInterception> list = new ArrayList<>();
325 325
         for (Object[] c : dataRows(sheet, 2)) {
326 326
             LedgerRealtimeInterception o = new LedgerRealtimeInterception();
327
-            
328
-            // 按照新的导入顺序映射字段
329
-            o.setRecordDate(date(c, 0));        // 时间
330
-            o.setLocation(str(c, 1));           // 区域
331
-            o.setPosition(str(c, 3));           // 岗位
332
-            o.setChannelNo(str(c, 2));          // 工作点
333
-            String inspectorName = str(c, 4);   // 责任人
327
+
328
+            o.setRecordDate(date(c, 0));          // 时间
329
+            o.setLocation(str(c, 1));             // 区域
330
+            o.setChannelNo(str(c, 2));            // 工作点
331
+            o.setPosition(str(c, 3));             // 岗位
332
+            String inspectorName = str(c, 4);     // 责任人
334 333
             o.setInspectorName(inspectorName);
335
-            o.setItemName(str(c, 5));           // 实时质控拦截物品
336
-            o.setItemQuantity(integer(c, 6));   // 个数
337
-            o.setProblemType(str(c, 7));        // 问题类型
338
-            o.setRectificationMeasures(str(c, 8)); // 整改措施
339
-            o.setProblemLevel(str(c, 9));       // 问题层级
340
-            o.setTeamName(str(c, 10));          // 班组
341
-            o.setAttachment(str(c, 11));        // 附件
342
-            o.setProblemCategory(str(c, 12));   // 问题类别
343
-            o.setPersonalReview(str(c, 13));    // 个人复盘
344
-            o.setTeamReview(str(c, 14));        // 队室复盘
345
-            o.setQualityOfficer(str(c, 15));    // 队室质控员
346
-            o.setQualityPushLeader(str(c, 16)); // 质控推送队室负责人
347
-            o.setOperationYears(str(c, 17));    // 开机年限
348
-            o.setResponsibleOperationAge(str(c, 18)); // 责任人开机年龄
349
-            o.setSendToRelevant(str(c, 19));    // 发送至相关人员
350
-            o.setMonthlyProblemCount(integer(c, 20)); // 本月内发生问题次数
351
-            o.setLastMonthProblemCount(integer(c, 21)); // 上月质控问题发生次数
352
-            o.setImageMissDifficulty(str(c, 22)); // 实时图像漏检难易度
353
-            o.setCheckPersonnel(str(c, 23));    // 检查人员
354
-            o.setDeptTrainingInstructor(str(c, 24)); // 部门培训教员
355
-            o.setManageQcManager(str(c, 25));   // 分管质控经理
356
-            o.setTeamInternalDuty(str(c, 26));  // 队室内勤
357
-            o.setRemark(str(c, 27));            // 备注
358
-            o.setTeamLeader(str(c, 28));        // 队室负责人
359
-            
334
+            o.setItemName(str(c, 5));             // 实时质控拦截物品
335
+            o.setItemQuantity(integer(c, 6));     // 个数
336
+            o.setProblemLevel(str(c, 7));         // 问题层级
337
+            o.setEvidenceFile(str(c, 8));         // 附件
338
+            o.setCheckPersonnel(str(c, 9));       // 检查人员
339
+
360 340
             // 根据责任人名称查找组织ID和名称
361 341
             if (inspectorName != null && !inspectorName.trim().isEmpty()) {
362 342
                 Map<String, Object> orgInfo = resolveOrgInfoByNameWithCache(inspectorName);
@@ -370,7 +350,7 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
370 350
                     o.setGroupName((String) orgInfo.get("groupName"));
371 351
                 }
372 352
             }
373
-            
353
+
374 354
             // 根据岗位和区域查找对应ID
375 355
             if (importCache != null) {
376 356
                 String positionName = str(c, 3);  // 岗位

+ 8 - 39
airport-ledger/src/main/resources/mapper/ledger/LedgerRealtimeInterceptionMapper.xml

@@ -5,7 +5,6 @@
5 5
     <resultMap id="BaseResultMap" type="com.sundot.airport.ledger.domain.LedgerRealtimeInterception">
6 6
         <id property="id" column="id" />
7 7
         <result property="recordDate" column="record_date" />
8
-        <result property="recordTime" column="record_time" />
9 8
         <result property="deptName" column="dept_name" />
10 9
         <result property="deptId" column="dept_id" />
11 10
         <result property="teamName" column="team_name" />
@@ -19,41 +18,15 @@
19 18
         <result property="inspectorName" column="inspector_name" />
20 19
         <result property="inspectorId" column="inspector_id" />
21 20
         <result property="channelNo" column="channel_no" />
22
-        <result property="passengerName" column="passenger_name" />
23
-        <result property="idCardNo" column="id_card_no" />
24
-        <result property="flightNo" column="flight_no" />
25
-        <result property="itemCategory" column="item_category" />
26 21
         <result property="itemName" column="item_name" />
27 22
         <result property="itemQuantity" column="item_quantity" />
28
-        <result property="itemWeight" column="item_weight" />
29
-        <result property="handlingMethod" column="handling_method" />
30
-        <result property="resultHandling" column="result_handling" />
31
-        <result property="problemType" column="problem_type" />
32
-        <result property="rectificationMeasures" column="rectification_measures" />
33 23
         <result property="problemLevel" column="problem_level" />
34
-        <result property="attachment" column="attachment" />
35
-        <result property="problemCategory" column="problem_category" />
36
-        <result property="personalReview" column="personal_review" />
37
-        <result property="teamReview" column="team_review" />
38
-        <result property="qualityOfficer" column="quality_officer" />
39
-        <result property="qualityPushLeader" column="quality_push_leader" />
40
-        <result property="operationYears" column="operation_years" />
41
-        <result property="responsibleOperationAge" column="responsible_operation_age" />
42
-        <result property="sendToRelevant" column="send_to_relevant" />
43
-        <result property="monthlyProblemCount" column="monthly_problem_count" />
44
-        <result property="lastMonthProblemCount" column="last_month_problem_count" />
45
-        <result property="imageMissDifficulty" column="image_miss_difficulty" />
46 24
         <result property="checkPersonnel" column="check_personnel" />
47
-        <result property="deptTrainingInstructor" column="dept_training_instructor" />
48
-        <result property="manageQcManager" column="manage_qc_manager" />
49
-        <result property="teamInternalDuty" column="team_internal_duty" />
50
-        <result property="remark" column="remark" />
51
-        <result property="teamLeader" column="team_leader" />
25
+        <result property="evidenceFile" column="evidence_file" />
52 26
         <result property="deductScore" column="deduct_score" />
53 27
         <result property="addScore" column="add_score" />
54 28
         <result property="scoreDimension" column="score_dimension" />
55 29
         <result property="scoreIndicator" column="score_indicator" />
56
-        <result property="evidenceFile" column="evidence_file" />
57 30
         <result property="importBatch" column="import_batch" />
58 31
         <result property="sourceType" column="source_type" />
59 32
         <result property="createBy"   column="create_by"   />
@@ -64,16 +37,12 @@
64 37
     </resultMap>
65 38
 
66 39
     <sql id="selectVo">
67
-        SELECT id, record_date, record_time, dept_name, dept_id, team_name, team_id, group_name, group_id, area_id,
40
+        SELECT id, record_date, dept_name, dept_id, team_name, team_id, group_name, group_id, area_id,
68 41
                location, position, position_id,
69
-               inspector_name, inspector_id, channel_no, passenger_name, id_card_no, flight_no, item_category, item_name,
70
-               item_quantity, item_weight, handling_method, result_handling, problem_type, rectification_measures,
71
-               problem_level, attachment, problem_category, personal_review, team_review, quality_officer,
72
-               quality_push_leader, operation_years, responsible_operation_age, send_to_relevant,
73
-               monthly_problem_count, last_month_problem_count, image_miss_difficulty, check_personnel,
74
-               dept_training_instructor, manage_qc_manager, team_internal_duty, remark, team_leader,
75
-               deduct_score, add_score, score_dimension, score_indicator, evidence_file, import_batch, source_type,
76
-               create_by, create_time, update_by, update_time, sync_flag
42
+               inspector_name, inspector_id, channel_no, item_name, item_quantity,
43
+               problem_level, check_personnel, evidence_file,
44
+               deduct_score, add_score, score_dimension, score_indicator,
45
+               import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
77 46
         FROM ledger_realtime_interception
78 47
         WHERE del_flag = '0'
79 48
     </sql>
@@ -85,10 +54,10 @@
85 54
         <if test="inspectorName != null and inspectorName != ''">AND inspector_name LIKE CONCAT('%', #{inspectorName}, '%')</if>
86 55
         <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
87 56
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
88
-            AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
57
+            AND record_date &gt;= #{params.beginTime}
89 58
         </if>
90 59
         <if test="params != null and params.endTime != null and params.endTime != ''">
91
-            AND (record_date &lt;= #{params.endTime} OR approve_date &lt;= #{params.endTime} OR exam_date &lt;= #{params.endTime})
60
+            AND record_date &lt;= #{params.endTime}
92 61
         </if>
93 62
         ORDER BY id DESC
94 63
     </select>