Ver código fonte

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

wangxx 2 semanas atrás
pai
commit
10082a278d

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

@@ -107,13 +107,14 @@ public class LedgerTemplateController extends BaseController {
107 107
             "时间","事件描述","类别","航班号","责任人","涉及班组","涉及物品","岗位","区域","通道号","图像"
108 108
         });
109 109
 
110
-        // 9. 2026查获违规品统计 (20列)
110
+        // 9. 2026查获违规品统计 (23列)
111 111
         nm.put("seizureStats", "2026查获违规品统计");
112 112
         hm.put("seizureStats", 2);
113 113
         cm.put("seizureStats", new String[]{
114
-            "查获时间","地点","通道号","部门/队室","区域","安检员","安检员岗位","值班组长",
115
-            "航班号","航班目的地","机票号","购票时间","旅客姓名","旅客性别","证件号码","旅客来源地",
116
-            "违规类别","物品种类","藏匿部位","数量"
114
+            "查获日期","查获时间","部门/队室","工作区域","安检员","安检资质","岗位",
115
+            "航班号","目的地","进/出港","违规主体","旅客姓名","旅客性别","旅客民族",
116
+            "旅客年龄","违规类别","违规物品","二级分类","数量","事件简况","查获位置",
117
+            "处理结果","备注"
117 118
         });
118 119
 
119 120
         // 10. 航站楼加分 (7列)

+ 52 - 78
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSeizureStats.java

@@ -24,22 +24,28 @@ public class LedgerSeizureStats extends BaseEntity {
24 24
     @Excel(name = "查获日期", width = 20, dateFormat = "yyyy-MM-dd")
25 25
     private Date recordDate;
26 26
 
27
+    @Excel(name = "查获时间")
28
+    private String seizureTime;
29
+
27 30
     @Excel(name = "部门名称")
28 31
     private String deptName;
29 32
 
30 33
     private Long deptId;
31 34
 
32
-    @Excel(name = "队室/班组")
33 35
     private String teamName;
34 36
 
35 37
     private Long teamId;
36 38
 
39
+    private String groupName;
40
+
41
+    private Long groupId;
42
+
37 43
     @Excel(name = "工作区域")
38 44
     private String workArea;
39 45
 
40 46
     private Long areaId;
41 47
 
42
-    @Excel(name = "安检资格证书等级")
48
+    @Excel(name = "安检资")
43 49
     private String qualificationLevel;
44 50
 
45 51
     @Excel(name = "岗位")
@@ -47,18 +53,22 @@ public class LedgerSeizureStats extends BaseEntity {
47 53
 
48 54
     private Long positionId;
49 55
 
50
-    @Excel(name = "小组")
51
-    private String groupName;
52
-
53
-    private Long groupId;
54
-
55
-    @Excel(name = "查获人")
56
+    @Excel(name = "安检员")
56 57
     private String inspectorName;
57 58
 
58 59
     private Long inspectorId;
59 60
 
60
-    @Excel(name = "通道号")
61
-    private String channelNo;
61
+    @Excel(name = "航班号")
62
+    private String flightNo;
63
+
64
+    @Excel(name = "目的地")
65
+    private String destination;
66
+
67
+    @Excel(name = "进/出港")
68
+    private String inOutPort;
69
+
70
+    @Excel(name = "违规主体")
71
+    private String violationSubject;
62 72
 
63 73
     @Excel(name = "旅客姓名")
64 74
     private String passengerName;
@@ -72,54 +82,30 @@ public class LedgerSeizureStats extends BaseEntity {
72 82
     @Excel(name = "旅客年龄")
73 83
     private Integer passengerAge;
74 84
 
75
-    @Excel(name = "航班号")
76
-    private String flightNo;
77
-
78
-    @Excel(name = "目的地")
79
-    private String destination;
80
-
81
-    @Excel(name = "进/出港")
82
-    private String inOutPort;
83
-
84
-    @Excel(name = "违规主体")
85
-    private String violationSubject;
86
-
87
-    @Excel(name = "违规品类别")
85
+    @Excel(name = "违规类别")
88 86
     private String itemCategory;
89 87
 
88
+    @Excel(name = "违规物品")
89
+    private String itemName;
90
+
90 91
     @Excel(name = "二级分类")
91 92
     private String secondaryCategory;
92 93
 
93
-    @Excel(name = "违规品名称")
94
-    private String itemName;
95
-
96 94
     @Excel(name = "数量")
97 95
     private Integer itemQuantity;
98 96
 
99
-    @Excel(name = "查获数量")
100
-    private Integer seizureQuantity;
101
-
102
-    @Excel(name = "藏匿部位")
103
-    private String concealmentPart;
104
-
105 97
     @Excel(name = "事件简况")
106 98
     private String eventBrief;
107 99
 
108
-    @Excel(name = "队室内勤")
109
-    private String teamInternalDuty;
110
-
111
-    @Excel(name = "检查方式")
112
-    private String checkMethod;
100
+    @Excel(name = "查获位置")
101
+    private String concealmentPart;
113 102
 
114
-    @Excel(name = "处置方式")
103
+    @Excel(name = "处理结果")
115 104
     private String handlingMethod;
116 105
 
117 106
     @Excel(name = "加分")
118 107
     private BigDecimal addScore;
119 108
 
120
-    @Excel(name = "叠加分")
121
-    private BigDecimal stackedScore;
122
-
123 109
     @Excel(name = "评分维度")
124 110
     private String scoreDimension;
125 111
 
@@ -146,6 +132,9 @@ public class LedgerSeizureStats extends BaseEntity {
146 132
     public Date getRecordDate() { return recordDate; }
147 133
     public void setRecordDate(Date recordDate) { this.recordDate = recordDate; }
148 134
 
135
+    public String getSeizureTime() { return seizureTime; }
136
+    public void setSeizureTime(String seizureTime) { this.seizureTime = seizureTime; }
137
+
149 138
     public String getDeptName() { return deptName; }
150 139
     public void setDeptName(String deptName) { this.deptName = deptName; }
151 140
 
@@ -158,6 +147,12 @@ public class LedgerSeizureStats extends BaseEntity {
158 147
     public Long getTeamId() { return teamId; }
159 148
     public void setTeamId(Long teamId) { this.teamId = teamId; }
160 149
 
150
+    public String getGroupName() { return groupName; }
151
+    public void setGroupName(String groupName) { this.groupName = groupName; }
152
+
153
+    public Long getGroupId() { return groupId; }
154
+    public void setGroupId(Long groupId) { this.groupId = groupId; }
155
+
161 156
     public String getWorkArea() { return workArea; }
162 157
     public void setWorkArea(String workArea) { this.workArea = workArea; }
163 158
 
@@ -173,20 +168,23 @@ public class LedgerSeizureStats extends BaseEntity {
173 168
     public Long getPositionId() { return positionId; }
174 169
     public void setPositionId(Long positionId) { this.positionId = positionId; }
175 170
 
176
-    public String getGroupName() { return groupName; }
177
-    public void setGroupName(String groupName) { this.groupName = groupName; }
178
-
179
-    public Long getGroupId() { return groupId; }
180
-    public void setGroupId(Long groupId) { this.groupId = groupId; }
181
-
182 171
     public String getInspectorName() { return inspectorName; }
183 172
     public void setInspectorName(String inspectorName) { this.inspectorName = inspectorName; }
184 173
 
185 174
     public Long getInspectorId() { return inspectorId; }
186 175
     public void setInspectorId(Long inspectorId) { this.inspectorId = inspectorId; }
187 176
 
188
-    public String getChannelNo() { return channelNo; }
189
-    public void setChannelNo(String channelNo) { this.channelNo = channelNo; }
177
+    public String getFlightNo() { return flightNo; }
178
+    public void setFlightNo(String flightNo) { this.flightNo = flightNo; }
179
+
180
+    public String getDestination() { return destination; }
181
+    public void setDestination(String destination) { this.destination = destination; }
182
+
183
+    public String getInOutPort() { return inOutPort; }
184
+    public void setInOutPort(String inOutPort) { this.inOutPort = inOutPort; }
185
+
186
+    public String getViolationSubject() { return violationSubject; }
187
+    public void setViolationSubject(String violationSubject) { this.violationSubject = violationSubject; }
190 188
 
191 189
     public String getPassengerName() { return passengerName; }
192 190
     public void setPassengerName(String passengerName) { this.passengerName = passengerName; }
@@ -200,44 +198,23 @@ public class LedgerSeizureStats extends BaseEntity {
200 198
     public Integer getPassengerAge() { return passengerAge; }
201 199
     public void setPassengerAge(Integer passengerAge) { this.passengerAge = passengerAge; }
202 200
 
203
-    public String getFlightNo() { return flightNo; }
204
-    public void setFlightNo(String flightNo) { this.flightNo = flightNo; }
205
-
206
-    public String getDestination() { return destination; }
207
-    public void setDestination(String destination) { this.destination = destination; }
208
-
209
-    public String getInOutPort() { return inOutPort; }
210
-    public void setInOutPort(String inOutPort) { this.inOutPort = inOutPort; }
211
-
212
-    public String getViolationSubject() { return violationSubject; }
213
-    public void setViolationSubject(String violationSubject) { this.violationSubject = violationSubject; }
214
-
215 201
     public String getItemCategory() { return itemCategory; }
216 202
     public void setItemCategory(String itemCategory) { this.itemCategory = itemCategory; }
217 203
 
218
-    public String getSecondaryCategory() { return secondaryCategory; }
219
-    public void setSecondaryCategory(String secondaryCategory) { this.secondaryCategory = secondaryCategory; }
220
-
221 204
     public String getItemName() { return itemName; }
222 205
     public void setItemName(String itemName) { this.itemName = itemName; }
223 206
 
207
+    public String getSecondaryCategory() { return secondaryCategory; }
208
+    public void setSecondaryCategory(String secondaryCategory) { this.secondaryCategory = secondaryCategory; }
209
+
224 210
     public Integer getItemQuantity() { return itemQuantity; }
225 211
     public void setItemQuantity(Integer itemQuantity) { this.itemQuantity = itemQuantity; }
226 212
 
227
-    public Integer getSeizureQuantity() { return seizureQuantity; }
228
-    public void setSeizureQuantity(Integer seizureQuantity) { this.seizureQuantity = seizureQuantity; }
229
-
230
-    public String getConcealmentPart() { return concealmentPart; }
231
-    public void setConcealmentPart(String concealmentPart) { this.concealmentPart = concealmentPart; }
232
-
233 213
     public String getEventBrief() { return eventBrief; }
234 214
     public void setEventBrief(String eventBrief) { this.eventBrief = eventBrief; }
235 215
 
236
-    public String getTeamInternalDuty() { return teamInternalDuty; }
237
-    public void setTeamInternalDuty(String teamInternalDuty) { this.teamInternalDuty = teamInternalDuty; }
238
-
239
-    public String getCheckMethod() { return checkMethod; }
240
-    public void setCheckMethod(String checkMethod) { this.checkMethod = checkMethod; }
216
+    public String getConcealmentPart() { return concealmentPart; }
217
+    public void setConcealmentPart(String concealmentPart) { this.concealmentPart = concealmentPart; }
241 218
 
242 219
     public String getHandlingMethod() { return handlingMethod; }
243 220
     public void setHandlingMethod(String handlingMethod) { this.handlingMethod = handlingMethod; }
@@ -245,9 +222,6 @@ public class LedgerSeizureStats extends BaseEntity {
245 222
     public BigDecimal getAddScore() { return addScore; }
246 223
     public void setAddScore(BigDecimal addScore) { this.addScore = addScore; }
247 224
 
248
-    public BigDecimal getStackedScore() { return stackedScore; }
249
-    public void setStackedScore(BigDecimal stackedScore) { this.stackedScore = stackedScore; }
250
-
251 225
     public String getScoreDimension() { return scoreDimension; }
252 226
     public void setScoreDimension(String scoreDimension) { this.scoreDimension = scoreDimension; }
253 227
 

+ 40 - 39
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerCombinedImportServiceImpl.java

@@ -781,55 +781,56 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
781 781
         List<LedgerSeizureStats> list = new ArrayList<>();
782 782
         for (Object[] c : dataRows(sheet, 2)) {
783 783
             LedgerSeizureStats o = new LedgerSeizureStats();
784
-            o.setRecordDate(date(c, 0));
785
-            o.setTeamName(str(c, 3));
786
-            o.setWorkArea(str(c, 4));
787
-            String inspectorName = str(c, 5);
784
+            o.setRecordDate(date(c, 0));         // 查获日期
785
+            o.setSeizureTime(str(c, 1));         // 查获时间
786
+            o.setDeptName(str(c, 2));            // 部门/队室
787
+            o.setWorkArea(str(c, 3));            // 工作区域
788
+            String inspectorName = str(c, 4);    // 安检员
788 789
             o.setInspectorName(inspectorName);
789
-            o.setQualificationLevel(str(c, 6));
790
-            o.setPosition(str(c, 7));
791
-            o.setFlightNo(str(c, 8));
792
-            o.setDestination(str(c, 9));
793
-            o.setInOutPort(str(c, 10));
794
-            o.setViolationSubject(str(c, 11));
795
-            o.setPassengerName(str(c, 12));
796
-            o.setPassengerGender(str(c, 13));
797
-            o.setPassengerEthnicity(str(c, 14));
798
-            o.setPassengerAge(integer(c, 15));
799
-            o.setItemCategory(str(c, 16));
800
-            o.setItemName(str(c, 17));  // 违规物品种类
801
-            o.setSecondaryCategory(str(c, 18));
802
-            o.setItemQuantity(integer(c, 19));
803
-            o.setEventBrief(str(c, 20));
804
-            o.setConcealmentPart(str(c, 21));   // 查获位置
805
-            o.setHandlingMethod(str(c, 22));  // 处理结果
806
-            o.setTeamInternalDuty(str(c, 24));
807
-            o.setRemark(str(c, 25));
808
-            o.setSeizureQuantity(integer(c, 26));  // 查获数量
809
-                
790
+            o.setQualificationLevel(str(c, 5));  // 安检资质
791
+            o.setPosition(str(c, 6));            // 岗位
792
+            o.setFlightNo(str(c, 7));            // 航班号
793
+            o.setDestination(str(c, 8));         // 目的地
794
+            o.setInOutPort(str(c, 9));           // 进/出港
795
+            o.setViolationSubject(str(c, 10));   // 违规主体
796
+            o.setPassengerName(str(c, 11));      // 旅客姓名
797
+            o.setPassengerGender(str(c, 12));    // 旅客性别
798
+            o.setPassengerEthnicity(str(c, 13)); // 旅客民族
799
+            o.setPassengerAge(integer(c, 14));    // 旅客年龄
800
+            o.setItemCategory(str(c, 15));       // 违规类别
801
+            o.setItemName(str(c, 16));           // 违规物品
802
+            o.setSecondaryCategory(str(c, 17));  // 二级分类
803
+            o.setItemQuantity(integer(c, 18));    // 数量
804
+            o.setEventBrief(str(c, 19));         // 事件简况
805
+            o.setConcealmentPart(str(c, 20));    // 查获位置
806
+            o.setHandlingMethod(str(c, 21));     // 处理结果
807
+            o.setRemark(str(c, 22));             // 备注
808
+
810 809
             // 使用缓存查找组织信息和名称
811
-            Map<String, Object> orgInfo = resolveOrgInfoByNameWithCache(inspectorName);
812
-            if (!orgInfo.isEmpty()) {
813
-                o.setInspectorId((Long) orgInfo.get("userId"));
814
-                o.setDeptId((Long) orgInfo.get("deptId"));
815
-                o.setDeptName((String) orgInfo.get("deptName"));
816
-                o.setTeamId((Long) orgInfo.get("teamId"));
817
-                o.setTeamName((String) orgInfo.get("teamName"));
818
-                o.setGroupId((Long) orgInfo.get("groupId"));
819
-                o.setGroupName((String) orgInfo.get("groupName"));
810
+            if (inspectorName != null && !inspectorName.trim().isEmpty()) {
811
+                Map<String, Object> orgInfo = resolveOrgInfoByNameWithCache(inspectorName);
812
+                if (!orgInfo.isEmpty()) {
813
+                    o.setInspectorId((Long) orgInfo.get("userId"));
814
+                    o.setDeptId((Long) orgInfo.get("deptId"));
815
+                    o.setDeptName((String) orgInfo.get("deptName"));
816
+                    o.setTeamId((Long) orgInfo.get("teamId"));
817
+                    o.setTeamName((String) orgInfo.get("teamName"));
818
+                    o.setGroupId((Long) orgInfo.get("groupId"));
819
+                    o.setGroupName((String) orgInfo.get("groupName"));
820
+                }
820 821
             }
821
-            
822
+
822 823
             // 根据岗位名称和工作区域名称查找ID
823 824
             if (importCache != null) {
824
-                String positionName = str(c, 7);
825
+                String positionName = str(c, 6);
825 826
                 if (positionName != null && !positionName.trim().isEmpty()) {
826 827
                     Long positionId = importCache.getPositionIdByName(positionName.trim());
827 828
                     if (positionId != null) {
828 829
                         o.setPositionId(positionId);
829 830
                     }
830 831
                 }
831
-                
832
-                String areaName = str(c, 4);
832
+
833
+                String areaName = str(c, 3);
833 834
                 if (areaName != null && !areaName.trim().isEmpty()) {
834 835
                     Long areaId = importCache.getAreaIdByName(areaName.trim());
835 836
                     if (areaId != null) {
@@ -837,7 +838,7 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
837 838
                     }
838 839
                 }
839 840
             }
840
-                
841
+
841 842
             o.setImportBatch(batchNo);
842 843
             o.setSourceType("1");
843 844
             o.setCreateBy(username);

+ 1 - 2
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerSyncServiceImpl.java

@@ -334,11 +334,10 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
334 334
             if (cat.contains("一类"))      { l3Id = IND_SEIZURE_L3_A; sv = POS_ONE; }
335 335
             else if (cat.contains("二类")) { l3Id = IND_SEIZURE_L3_B; sv = POS_HALF; }
336 336
             else                           { l3Id = IND_SEIZURE_L3_C; sv = POS_015; }
337
-            BigDecimal cascade = row.getStackedScore() != null ? row.getStackedScore() : ZERO;
338 337
             ScoreIndicator lv3 = getIndicator(l3Id);
339 338
             ScoreEvent e = buildEvent(dimId, lv2, lv3, row.getInspectorName(),
340 339
                     row.getTeamName(), row.getRecordDate(),
341
-                    null, sv, cascade,
340
+                    null, sv, ZERO,
342 341
                     row.getItemName(), src, row.getEvidenceFile());
343 342
             scoreEventMapper.insert(e);
344 343
             ins++;

Diferenças do arquivo suprimidas por serem muito extensas
+ 12 - 8
airport-ledger/src/main/resources/mapper/ledger/LedgerSeizureStatsMapper.xml