Przeglądaj źródła

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

wangxx 2 tygodni temu
rodzic
commit
f415ac601f

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

@@ -72,8 +72,8 @@ public class LedgerTemplateController extends BaseController {
72 72
         nm.put("complaint", "投诉情况");
73 73
         hm.put("complaint", 2);
74 74
         cm.put("complaint", new String[]{
75
-            "时间","航班号","旅客姓名","班组","责任人","投诉情况","旅客诉求","类别","渠道来源",
76
-            "是否有责","处理进度","责任队长","队室内勤"
75
+            "时间","航班号","旅客姓名","责任人","投诉情况","旅客诉求","类别","渠道来源",
76
+            "是否有责","处理进度"
77 77
         });
78 78
 
79 79
         // 6. 安保测试记录表(部门)(19列)

+ 30 - 46
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerComplaint.java

@@ -21,28 +21,37 @@ public class LedgerComplaint 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 27
     @Excel(name = "部门名称")
28 28
     private String deptName;
29 29
 
30
-    @Excel(name = "队室/班组")
30
+    private Long deptId;
31
+
31 32
     private String teamName;
32 33
 
34
+    private Long teamId;
35
+
36
+    private String groupName;
37
+
38
+    private Long groupId;
39
+
33 40
     @Excel(name = "责任人")
34 41
     private String responsibleName;
35 42
 
43
+    private Long responsibleId;
44
+
36 45
     @Excel(name = "航班号")
37 46
     private String flightNo;
38 47
 
39 48
     @Excel(name = "旅客姓名")
40 49
     private String passengerName;
41 50
 
42
-    @Excel(name = "投诉类型")
51
+    @Excel(name = "类别")
43 52
     private String complaintType;
44 53
 
45
-    @Excel(name = "投诉内容")
54
+    @Excel(name = "投诉情况")
46 55
     private String complaintDesc;
47 56
 
48 57
     @Excel(name = "旅客诉求")
@@ -54,13 +63,7 @@ public class LedgerComplaint extends BaseEntity {
54 63
     @Excel(name = "是否有责")
55 64
     private String isResponsible;
56 65
 
57
-    @Excel(name = "责任队长")
58
-    private String responsibleCaptain;
59
-
60
-    @Excel(name = "队室内勤")
61
-    private String teamInternalDuty;
62
-
63
-    @Excel(name = "处理结果")
66
+    @Excel(name = "处理进度")
64 67
     private String resultHandling;
65 68
 
66 69
     @Excel(name = "扣分")
@@ -69,9 +72,6 @@ public class LedgerComplaint extends BaseEntity {
69 72
     @Excel(name = "佐证附件")
70 73
     private String evidenceFile;
71 74
 
72
-    @Excel(name = "备注")
73
-    private String remark;
74
-
75 75
     private String importBatch;
76 76
 
77 77
     @Excel(name = "数据来源")
@@ -80,13 +80,6 @@ public class LedgerComplaint extends BaseEntity {
80 80
     @Excel(name = "同步标志(0=未同步;1=已同步)")
81 81
     private String syncFlag;
82 82
 
83
-    // ID字段
84
-    private Long responsibleId;
85
-    private Long deptId;
86
-    private Long teamId;
87
-    private Long groupId;
88
-    private String groupName;
89
-
90 83
     public Long getId() { return id; }
91 84
     public void setId(Long id) { this.id = id; }
92 85
 
@@ -96,12 +89,27 @@ public class LedgerComplaint extends BaseEntity {
96 89
     public String getDeptName() { return deptName; }
97 90
     public void setDeptName(String deptName) { this.deptName = deptName; }
98 91
 
92
+    public Long getDeptId() { return deptId; }
93
+    public void setDeptId(Long deptId) { this.deptId = deptId; }
94
+
99 95
     public String getTeamName() { return teamName; }
100 96
     public void setTeamName(String teamName) { this.teamName = teamName; }
101 97
 
98
+    public Long getTeamId() { return teamId; }
99
+    public void setTeamId(Long teamId) { this.teamId = teamId; }
100
+
101
+    public String getGroupName() { return groupName; }
102
+    public void setGroupName(String groupName) { this.groupName = groupName; }
103
+
104
+    public Long getGroupId() { return groupId; }
105
+    public void setGroupId(Long groupId) { this.groupId = groupId; }
106
+
102 107
     public String getResponsibleName() { return responsibleName; }
103 108
     public void setResponsibleName(String responsibleName) { this.responsibleName = responsibleName; }
104 109
 
110
+    public Long getResponsibleId() { return responsibleId; }
111
+    public void setResponsibleId(Long responsibleId) { this.responsibleId = responsibleId; }
112
+
105 113
     public String getFlightNo() { return flightNo; }
106 114
     public void setFlightNo(String flightNo) { this.flightNo = flightNo; }
107 115
 
@@ -123,12 +131,6 @@ public class LedgerComplaint extends BaseEntity {
123 131
     public String getIsResponsible() { return isResponsible; }
124 132
     public void setIsResponsible(String isResponsible) { this.isResponsible = isResponsible; }
125 133
 
126
-    public String getResponsibleCaptain() { return responsibleCaptain; }
127
-    public void setResponsibleCaptain(String responsibleCaptain) { this.responsibleCaptain = responsibleCaptain; }
128
-
129
-    public String getTeamInternalDuty() { return teamInternalDuty; }
130
-    public void setTeamInternalDuty(String teamInternalDuty) { this.teamInternalDuty = teamInternalDuty; }
131
-
132 134
     public String getResultHandling() { return resultHandling; }
133 135
     public void setResultHandling(String resultHandling) { this.resultHandling = resultHandling; }
134 136
 
@@ -138,9 +140,6 @@ public class LedgerComplaint extends BaseEntity {
138 140
     public String getEvidenceFile() { return evidenceFile; }
139 141
     public void setEvidenceFile(String evidenceFile) { this.evidenceFile = evidenceFile; }
140 142
 
141
-    public String getRemark() { return remark; }
142
-    public void setRemark(String remark) { this.remark = remark; }
143
-
144 143
     public String getImportBatch() { return importBatch; }
145 144
     public void setImportBatch(String importBatch) { this.importBatch = importBatch; }
146 145
 
@@ -149,19 +148,4 @@ public class LedgerComplaint extends BaseEntity {
149 148
 
150 149
     public String getSyncFlag() { return syncFlag; }
151 150
     public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
152
-
153
-    public Long getResponsibleId() { return responsibleId; }
154
-    public void setResponsibleId(Long responsibleId) { this.responsibleId = responsibleId; }
155
-
156
-    public Long getDeptId() { return deptId; }
157
-    public void setDeptId(Long deptId) { this.deptId = deptId; }
158
-
159
-    public Long getTeamId() { return teamId; }
160
-    public void setTeamId(Long teamId) { this.teamId = teamId; }
161
-
162
-    public Long getGroupId() { return groupId; }
163
-    public void setGroupId(Long groupId) { this.groupId = groupId; }
164
-
165
-    public String getGroupName() { return groupName; }
166
-    public void setGroupName(String groupName) { this.groupName = groupName; }
167
-}
151
+}

+ 11 - 16
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerCombinedImportServiceImpl.java

@@ -443,31 +443,26 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
443 443
     }
444 444
 
445 445
     /** 5. 投诉情况 → ledger_complaint
446
-     * R2: 时间(0) 航班号(1) 旅客姓名(2) 班组(3) 责任人(4)
447
-     *     投诉情况(5) 旅客诉求(6) 类别(7) 渠道来源(8) 是否有责(9)
448
-     *     处理进度(10) 责任队长(11) 队室内勤(12)
446
+     * R2: 时间(0) 航班号(1) 旅客姓名(2) 责任人(3) 投诉情况(4)
447
+     *     旅客诉求(5) 类别(6) 渠道来源(7) 是否有责(8) 处理进度(9)
449 448
      */
450 449
     private int doComplaint(Sheet sheet, String batchNo, String username) {
451 450
         List<LedgerComplaint> list = new ArrayList<>();
452 451
         for (Object[] c : dataRows(sheet, 2)) {
453 452
             LedgerComplaint o = new LedgerComplaint();
454
-            
455
-            // 按导入顺序映射字段
453
+
456 454
             o.setRecordDate(date(c, 0));           // 时间
457 455
             o.setFlightNo(str(c, 1));              // 航班号
458 456
             o.setPassengerName(str(c, 2));         // 旅客姓名
459
-            o.setTeamName(str(c, 3));              // 班组
460
-            String responsibleName = str(c, 4);    // 责任人
457
+            String responsibleName = str(c, 3);    // 责任人
461 458
             o.setResponsibleName(responsibleName);
462
-            o.setComplaintDesc(str(c, 5));         // 投诉情况
463
-            o.setPassengerDemand(str(c, 6));       // 旅客诉求
464
-            o.setComplaintType(str(c, 7));         // 类别
465
-            o.setChannelSource(str(c, 8));         // 渠道来源
466
-            o.setIsResponsible(str(c, 9));         // 是否有责
467
-            o.setResultHandling(str(c, 10));       // 处理进度
468
-            o.setResponsibleCaptain(str(c, 11));   // 责任队长
469
-            o.setTeamInternalDuty(str(c, 12));     // 队室内勤
470
-            
459
+            o.setComplaintDesc(str(c, 4));         // 投诉情况
460
+            o.setPassengerDemand(str(c, 5));       // 旅客诉求
461
+            o.setComplaintType(str(c, 6));         // 类别
462
+            o.setChannelSource(str(c, 7));         // 渠道来源
463
+            o.setIsResponsible(str(c, 8));         // 是否有责
464
+            o.setResultHandling(str(c, 9));        // 处理进度
465
+
471 466
             // 根据责任人名称查找组织信息和ID
472 467
             if (responsibleName != null && !responsibleName.trim().isEmpty()) {
473 468
                 Map<String, Object> orgInfo = resolveOrgInfoByNameWithCache(responsibleName);

+ 9 - 13
airport-ledger/src/main/resources/mapper/ledger/LedgerComplaintMapper.xml

@@ -6,8 +6,13 @@
6 6
         <id property="id" column="id" />
7 7
         <result property="recordDate" column="record_date" />
8 8
         <result property="deptName" column="dept_name" />
9
+        <result property="deptId" column="dept_id" />
9 10
         <result property="teamName" column="team_name" />
11
+        <result property="teamId" column="team_id" />
12
+        <result property="groupName" column="group_name" />
13
+        <result property="groupId" column="group_id" />
10 14
         <result property="responsibleName" column="responsible_name" />
15
+        <result property="responsibleId" column="responsible_id" />
11 16
         <result property="flightNo" column="flight_no" />
12 17
         <result property="passengerName" column="passenger_name" />
13 18
         <result property="complaintType" column="complaint_type" />
@@ -15,12 +20,9 @@
15 20
         <result property="passengerDemand" column="passenger_demand" />
16 21
         <result property="channelSource" column="channel_source" />
17 22
         <result property="isResponsible" column="is_responsible" />
18
-        <result property="responsibleCaptain" column="responsible_captain" />
19
-        <result property="teamInternalDuty" column="team_internal_duty" />
20 23
         <result property="resultHandling" column="result_handling" />
21 24
         <result property="deductScore" column="deduct_score" />
22 25
         <result property="evidenceFile" column="evidence_file" />
23
-        <result property="remark" column="remark" />
24 26
         <result property="importBatch" column="import_batch" />
25 27
         <result property="sourceType" column="source_type" />
26 28
         <result property="createBy" column="create_by" />
@@ -28,19 +30,13 @@
28 30
         <result property="updateBy" column="update_by" />
29 31
         <result property="updateTime" column="update_time" />
30 32
         <result property="syncFlag" column="sync_flag" />
31
-        <result property="responsibleId" column="responsible_id" />
32
-        <result property="deptId" column="dept_id" />
33
-        <result property="teamId" column="team_id" />
34
-        <result property="groupId" column="group_id" />
35
-        <result property="groupName" column="group_name" />
36 33
     </resultMap>
37 34
 
38 35
     <sql id="selectVo">
39 36
         SELECT id, record_date, dept_name, dept_id, team_name, team_id, group_name, group_id,
40 37
                responsible_name, responsible_id, flight_no, passenger_name,
41 38
                complaint_type, complaint_desc, passenger_demand, channel_source,
42
-               is_responsible, responsible_captain, team_internal_duty,
43
-               result_handling, deduct_score, evidence_file, remark,
39
+               is_responsible, result_handling, deduct_score, evidence_file,
44 40
                import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
45 41
         FROM ledger_complaint
46 42
         WHERE del_flag = '0'
@@ -52,10 +48,10 @@
52 48
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
53 49
         <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
54 50
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
55
-            AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
51
+            AND record_date &gt;= #{params.beginTime}
56 52
         </if>
57 53
         <if test="params != null and params.endTime != null and params.endTime != ''">
58
-            AND (record_date &lt;= #{params.endTime} OR approve_date &lt;= #{params.endTime} OR exam_date &lt;= #{params.endTime})
54
+            AND record_date &lt;= #{params.endTime}
59 55
         </if>
60 56
         ORDER BY id DESC
61 57
     </select>
@@ -65,4 +61,4 @@
65 61
         set sync_flag = '1'
66 62
         where sync_flag = '0'
67 63
     </update>
68
-</mapper>
64
+</mapper>