Explorar o código

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

wangxx hai 2 semanas
pai
achega
e7ae7cd84d

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

@@ -36,14 +36,12 @@ public class LedgerTemplateController extends BaseController {
36 36
         Map<String, Integer> hm = new LinkedHashMap<>();
37 37
         Map<String, String[]> cm = new LinkedHashMap<>();
38 38
 
39
-        // 1. 部门监察问题记录表 (25列)
39
+        // 1. 部门监察问题记录表 (14列)
40 40
         nm.put("supervisionProblem", "部门监察问题记录表");
41 41
         hm.put("supervisionProblem", 2);
42 42
         cm.put("supervisionProblem", new String[]{
43 43
             "时间","区域","工作点","岗位","责任人","问题描述","问题类型","整改措施","依据","问题层级",
44
-            "班组","队室质控员","质控推送队室负责人","附件","整改情况","佐证材料","本月内发生问题次数",
45
-            "上月质控问题超过三次人员","检查人员","分管质控经理","录入时间","部门培训教员","队室内勤",
46
-            "发送至相关人员","队室负责人"
44
+            "附件","整改情况","整改佐证材料","巡查人员"
47 45
         });
48 46
 
49 47
         // 2. 队室三级质控巡查记录表 (21列)

+ 17 - 86
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSupervisionProblem.java

@@ -21,7 +21,7 @@ public class LedgerSupervisionProblem 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 = "部门名称")
@@ -29,22 +29,20 @@ public class LedgerSupervisionProblem extends BaseEntity {
29 29
 
30 30
     private Long deptId;
31 31
 
32
-    @Excel(name = "队室/班组")
33 32
     private String teamName;
34 33
 
35 34
     private Long teamId;
36 35
 
37
-    @Excel(name = "小组")
38 36
     private String groupName;
39 37
 
40 38
     private Long groupId;
41 39
 
42 40
     private Long areaId;
43 41
 
44
-    @Excel(name = "巡查人")
45
-    private String inspectorName;
42
+    @Excel(name = "巡查人")
43
+    private String patrolPersonnel;
46 44
 
47
-    @Excel(name = "被查人")
45
+    @Excel(name = "责任人")
48 46
     private String inspectedName;
49 47
 
50 48
     private Long inspectedId;
@@ -58,10 +56,10 @@ public class LedgerSupervisionProblem extends BaseEntity {
58 56
     @Excel(name = "问题描述")
59 57
     private String problemDesc;
60 58
 
61
-    @Excel(name = "问题地点")
59
+    @Excel(name = "区域")
62 60
     private String location;
63 61
 
64
-    @Excel(name = "通道号")
62
+    @Excel(name = "工作点")
65 63
     private String channelNo;
66 64
 
67 65
     @Excel(name = "岗位")
@@ -69,51 +67,20 @@ public class LedgerSupervisionProblem extends BaseEntity {
69 67
 
70 68
     private Long positionId;
71 69
 
72
-    @Excel(name = "处理结果")
70
+    @Excel(name = "整改措施")
73 71
     private String resultHandling;
74 72
 
75 73
     @Excel(name = "依据")
76 74
     private String basis;
77 75
 
78
-    @Excel(name = "队室质控员")
79
-    private String qualityOfficer;
80
-
81
-    @Excel(name = "质控推送队室负责人")
82
-    private String qualityPushLeader;
83
-
84 76
     @Excel(name = "整改情况")
85 77
     private String rectificationStatus;
86 78
 
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;
79
+    @Excel(name = "整改佐证材料")
80
+    private String rectificationEvidence;
104 81
 
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;
82
+    @Excel(name = "附件")
83
+    private String evidenceFile;
117 84
 
118 85
     @Excel(name = "扣分")
119 86
     private BigDecimal deductScore;
@@ -127,9 +94,6 @@ public class LedgerSupervisionProblem extends BaseEntity {
127 94
     @Excel(name = "评分指标")
128 95
     private String scoreIndicator;
129 96
 
130
-    @Excel(name = "佐证附件")
131
-    private String evidenceFile;
132
-
133 97
     @Excel(name = "备注")
134 98
     private String remark;
135 99
 
@@ -168,8 +132,8 @@ public class LedgerSupervisionProblem extends BaseEntity {
168 132
     public Long getAreaId() { return areaId; }
169 133
     public void setAreaId(Long areaId) { this.areaId = areaId; }
170 134
 
171
-    public String getInspectorName() { return inspectorName; }
172
-    public void setInspectorName(String inspectorName) { this.inspectorName = inspectorName; }
135
+    public String getPatrolPersonnel() { return patrolPersonnel; }
136
+    public void setPatrolPersonnel(String patrolPersonnel) { this.patrolPersonnel = patrolPersonnel; }
173 137
 
174 138
     public String getInspectedName() { return inspectedName; }
175 139
     public void setInspectedName(String inspectedName) { this.inspectedName = inspectedName; }
@@ -204,44 +168,14 @@ public class LedgerSupervisionProblem extends BaseEntity {
204 168
     public String getBasis() { return basis; }
205 169
     public void setBasis(String basis) { this.basis = basis; }
206 170
 
207
-    public String getQualityOfficer() { return qualityOfficer; }
208
-    public void setQualityOfficer(String qualityOfficer) { this.qualityOfficer = qualityOfficer; }
209
-
210
-    public String getQualityPushLeader() { return qualityPushLeader; }
211
-    public void setQualityPushLeader(String qualityPushLeader) { this.qualityPushLeader = qualityPushLeader; }
212
-
213 171
     public String getRectificationStatus() { return rectificationStatus; }
214 172
     public void setRectificationStatus(String rectificationStatus) { this.rectificationStatus = rectificationStatus; }
215 173
 
216
-    public String getEvidenceMaterial() { return evidenceMaterial; }
217
-    public void setEvidenceMaterial(String evidenceMaterial) { this.evidenceMaterial = evidenceMaterial; }
218
-
219
-    public String getSendToRelevant() { return sendToRelevant; }
220
-    public void setSendToRelevant(String sendToRelevant) { this.sendToRelevant = sendToRelevant; }
221
-
222
-    public Integer getMonthlyProblemCount() { return monthlyProblemCount; }
223
-    public void setMonthlyProblemCount(Integer monthlyProblemCount) { this.monthlyProblemCount = monthlyProblemCount; }
224
-
225
-    public String getLastMonthExceedThree() { return lastMonthExceedThree; }
226
-    public void setLastMonthExceedThree(String lastMonthExceedThree) { this.lastMonthExceedThree = lastMonthExceedThree; }
227
-
228
-    public String getCheckPersonnel() { return checkPersonnel; }
229
-    public void setCheckPersonnel(String checkPersonnel) { this.checkPersonnel = checkPersonnel; }
230
-
231
-    public String getManageQcManager() { return manageQcManager; }
232
-    public void setManageQcManager(String manageQcManager) { this.manageQcManager = manageQcManager; }
233
-
234
-    public Date getInputTime() { return inputTime; }
235
-    public void setInputTime(Date inputTime) { this.inputTime = inputTime; }
174
+    public String getRectificationEvidence() { return rectificationEvidence; }
175
+    public void setRectificationEvidence(String rectificationEvidence) { this.rectificationEvidence = rectificationEvidence; }
236 176
 
237
-    public String getDeptTrainingInstructor() { return deptTrainingInstructor; }
238
-    public void setDeptTrainingInstructor(String deptTrainingInstructor) { this.deptTrainingInstructor = deptTrainingInstructor; }
239
-
240
-    public String getTeamInternalDuty() { return teamInternalDuty; }
241
-    public void setTeamInternalDuty(String teamInternalDuty) { this.teamInternalDuty = teamInternalDuty; }
242
-
243
-    public String getTeamLeader() { return teamLeader; }
244
-    public void setTeamLeader(String teamLeader) { this.teamLeader = teamLeader; }
177
+    public String getEvidenceFile() { return evidenceFile; }
178
+    public void setEvidenceFile(String evidenceFile) { this.evidenceFile = evidenceFile; }
245 179
 
246 180
     public BigDecimal getDeductScore() { return deductScore; }
247 181
     public void setDeductScore(BigDecimal deductScore) { this.deductScore = deductScore; }
@@ -255,9 +189,6 @@ public class LedgerSupervisionProblem extends BaseEntity {
255 189
     public String getScoreIndicator() { return scoreIndicator; }
256 190
     public void setScoreIndicator(String scoreIndicator) { this.scoreIndicator = scoreIndicator; }
257 191
 
258
-    public String getEvidenceFile() { return evidenceFile; }
259
-    public void setEvidenceFile(String evidenceFile) { this.evidenceFile = evidenceFile; }
260
-
261 192
     public String getRemark() { return remark; }
262 193
     public void setRemark(String remark) { this.remark = remark; }
263 194
 

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

@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4 4
 import com.baomidou.mybatisplus.extension.service.IService;
5 5
 import com.sundot.airport.common.core.domain.entity.SysDept;
6 6
 import com.sundot.airport.common.core.domain.entity.SysUser;
7
+import com.sundot.airport.common.enums.DeptType;
7 8
 import com.sundot.airport.system.domain.SysPost;
8 9
 import com.sundot.airport.system.domain.BasePosition;
9 10
 import com.sundot.airport.ledger.domain.*;
@@ -172,8 +173,7 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
172 173
         List<LedgerSupervisionProblem> list = new ArrayList<>();
173 174
         for (Object[] c : dataRows(sheet, 2)) {
174 175
             LedgerSupervisionProblem o = new LedgerSupervisionProblem();
175
-            
176
-            // 按导入顺序映射字段
176
+
177 177
             o.setRecordDate(date(c, 0));        // 时间
178 178
             o.setLocation(str(c, 1));           // 区域
179 179
             o.setChannelNo(str(c, 2));          // 工作点
@@ -185,22 +185,11 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
185 185
             o.setResultHandling(str(c, 7));     // 整改措施
186 186
             o.setBasis(str(c, 8));              // 依据
187 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
-            
188
+            o.setEvidenceFile(str(c, 10));      // 附件
189
+            o.setRectificationStatus(str(c, 11)); // 整改情况
190
+            o.setRectificationEvidence(str(c, 12)); // 整改佐证材料
191
+            o.setPatrolPersonnel(str(c, 13));    // 巡查人员
192
+
204 193
             // 根据责任人名称查找组织ID和名称
205 194
             if (inspectedName != null && !inspectedName.trim().isEmpty()) {
206 195
                 Map<String, Object> orgInfo = resolveOrgInfoByNameWithCache(inspectedName);
@@ -214,10 +203,9 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
214 203
                     o.setGroupName((String) orgInfo.get("groupName"));
215 204
                 }
216 205
             }
217
-            
206
+
218 207
             // 根据岗位和区域查找对应ID
219 208
             if (importCache != null) {
220
-                // 岗位ID
221 209
                 String positionName = o.getPosition();
222 210
                 if (positionName != null && !positionName.trim().isEmpty()) {
223 211
                     Long positionId = importCache.getPositionIdByName(positionName.trim());
@@ -225,8 +213,7 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
225 213
                         o.setPositionId(positionId);
226 214
                     }
227 215
                 }
228
-                
229
-                // 区域ID
216
+
230 217
                 String areaName = o.getLocation();
231 218
                 if (areaName != null && !areaName.trim().isEmpty()) {
232 219
                     Long areaId = importCache.getAreaIdByName(areaName.trim());
@@ -235,7 +222,7 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
235 222
                     }
236 223
                 }
237 224
             }
238
-            
225
+
239 226
             o.setImportBatch(batchNo);
240 227
             o.setSourceType("1");
241 228
             o.setCreateBy(username);
@@ -1412,8 +1399,9 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
1412 1399
 
1413 1400
     /**
1414 1401
      * 根据人员名称查找用户,并补充组织架构ID
1402
+     * 层级:STATION(机构站) → BRIGADE(部门) → MANAGER(班组) → TEAMS(小组)
1415 1403
      * @param personName 人员名称
1416
-     * @return Map包含: userId, deptId(BRIGADE), teamId(MANAGER), groupId(TEAMS)
1404
+     * @return Map包含: userId, stationId, stationName, deptId, deptName, teamId, teamName, groupId, groupName
1417 1405
      */
1418 1406
     private Map<String, Object> resolveOrgInfoByNameWithCache(String personName) {
1419 1407
         Map<String, Object> result = new HashMap<>();
@@ -1422,8 +1410,7 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
1422 1410
         }
1423 1411
 
1424 1412
         String name = personName.trim();
1425
-        
1426
-        // 1. 从缓存中查找用户
1413
+
1427 1414
         SysUser user = importCache.getUserByNickName(name);
1428 1415
         if (user == null || user.getDeptId() == null) {
1429 1416
             return result;
@@ -1431,7 +1418,6 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
1431 1418
 
1432 1419
         result.put("userId", user.getUserId());
1433 1420
 
1434
-        // 2. 从缓存中获取用户部门信息
1435 1421
         SysDept userDept = importCache.getDeptById(user.getDeptId());
1436 1422
         if (userDept == null) {
1437 1423
             return result;
@@ -1439,39 +1425,56 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
1439 1425
 
1440 1426
         String deptType = userDept.getDeptType();
1441 1427
 
1442
-        // 3. 根据部门类型递归获取各级组织ID和名称
1443
-        if ("BRIGADE".equals(deptType)) {
1444
-            // 用户部门是大队
1428
+        if (DeptType.STATION.getCode().equals(deptType)) {
1429
+            result.put("stationId", user.getDeptId());
1430
+            result.put("stationName", userDept.getDeptName());
1431
+        } else if (DeptType.BRIGADE.getCode().equals(deptType)) {
1445 1432
             result.put("deptId", user.getDeptId());
1446 1433
             result.put("deptName", userDept.getDeptName());
1447
-        } else if ("MANAGER".equals(deptType)) {
1448
-            // 用户部门是队室/班组,向上找大队
1434
+            if (userDept.getParentId() != null && userDept.getParentId() != 0) {
1435
+                SysDept parentDept = importCache.getDeptById(userDept.getParentId());
1436
+                if (parentDept != null) {
1437
+                    result.put("stationId", parentDept.getDeptId());
1438
+                    result.put("stationName", parentDept.getDeptName());
1439
+                }
1440
+            }
1441
+        } else if (DeptType.MANAGER.getCode().equals(deptType)) {
1449 1442
             result.put("teamId", user.getDeptId());
1450 1443
             result.put("teamName", userDept.getDeptName());
1451 1444
             if (userDept.getParentId() != null && userDept.getParentId() != 0) {
1452
-                result.put("deptId", userDept.getParentId());
1453
-                // 从缓存中获取父级部门(大队)
1454 1445
                 SysDept parentDept = importCache.getDeptById(userDept.getParentId());
1455 1446
                 if (parentDept != null) {
1447
+                    result.put("deptId", parentDept.getDeptId());
1456 1448
                     result.put("deptName", parentDept.getDeptName());
1449
+                    if (parentDept.getParentId() != null && parentDept.getParentId() != 0) {
1450
+                        SysDept grandParentDept = importCache.getDeptById(parentDept.getParentId());
1451
+                        if (grandParentDept != null) {
1452
+                            result.put("stationId", grandParentDept.getDeptId());
1453
+                            result.put("stationName", grandParentDept.getDeptName());
1454
+                        }
1455
+                    }
1457 1456
                 }
1458 1457
             }
1459
-        } else if ("TEAMS".equals(deptType)) {
1460
-            // 用户部门是小组,向上找队室和大队
1458
+        } else if (DeptType.TEAMS.getCode().equals(deptType)) {
1461 1459
             result.put("groupId", user.getDeptId());
1462 1460
             result.put("groupName", userDept.getDeptName());
1463 1461
             if (userDept.getParentId() != null && userDept.getParentId() != 0) {
1464
-                result.put("teamId", userDept.getParentId());
1465
-                // 从缓存中获取父级部门(队室)
1466 1462
                 SysDept parentDept = importCache.getDeptById(userDept.getParentId());
1467 1463
                 if (parentDept != null) {
1464
+                    result.put("teamId", parentDept.getDeptId());
1468 1465
                     result.put("teamName", parentDept.getDeptName());
1469 1466
                     if (parentDept.getParentId() != null && parentDept.getParentId() != 0) {
1470
-                        result.put("deptId", parentDept.getParentId());
1471
-                        // 从缓存中获取祖父级部门(大队)
1472 1467
                         SysDept grandParentDept = importCache.getDeptById(parentDept.getParentId());
1473 1468
                         if (grandParentDept != null) {
1469
+                            result.put("deptId", grandParentDept.getDeptId());
1474 1470
                             result.put("deptName", grandParentDept.getDeptName());
1471
+                            if (grandParentDept.getParentId() != null && grandParentDept.getParentId() != 0) {
1472
+                                SysDept greatGrandParentDept = importCache.getDeptById(grandParentDept.getParentId());
1473
+                                if (greatGrandParentDept != null) {
1474
+                                    result.put("stationId", greatGrandParentDept.getDeptId());
1475
+                                    result.put("stationName", greatGrandParentDept.getDeptName());
1476
+                                }
1477
+                            }
1475 1478
                         }
1476 1479
                     }
1477 1480
                 }

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

@@ -205,7 +205,7 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
205 205
             BigDecimal sv = row.getDeductScore() != null ? row.getDeductScore().negate() : defaultSv;
206 206
             ScoreIndicator lv3 = getIndicator(l3Id);
207 207
             ScoreEvent e = buildEvent(dimId, lv2, lv3, row.getInspectedName(),
208
-                    row.getTeamName(), row.getRecordDate(),
208
+                    null, row.getRecordDate(),
209 209
                     row.getLocation(), sv, ZERO,
210 210
                     row.getProblemDesc(), src, row.getEvidenceFile());
211 211
             scoreEventMapper.insert(e);

+ 39 - 51
airport-ledger/src/main/resources/mapper/ledger/LedgerSupervisionProblemMapper.xml

@@ -3,62 +3,50 @@
3 3
 <mapper namespace="com.sundot.airport.ledger.mapper.LedgerSupervisionProblemMapper">
4 4
 
5 5
     <resultMap id="BaseResultMap" type="com.sundot.airport.ledger.domain.LedgerSupervisionProblem">
6
-        <id     property="id"               column="id"               />
7
-        <result property="recordDate"       column="record_date"      />
8
-        <result property="deptName"         column="dept_name"        />
9
-        <result property="deptId"           column="dept_id"          />
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"         />
14
-        <result property="areaId"           column="area_id"          />
15
-        <result property="inspectorName"    column="inspector_name"   />
16
-        <result property="inspectedName"    column="inspected_name"   />
17
-        <result property="inspectedId"      column="inspected_id"     />
18
-        <result property="problemType"      column="problem_type"     />
19
-        <result property="problemLevel"     column="problem_level"    />
20
-        <result property="problemDesc"      column="problem_desc"     />
21
-        <result property="location"         column="location"         />
22
-        <result property="channelNo"        column="channel_no"       />
23
-        <result property="position"         column="position"         />
24
-        <result property="positionId"       column="position_id"      />
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"      />
40
-        <result property="deductScore"      column="deduct_score"     />
41
-        <result property="addScore"         column="add_score"        />
42
-        <result property="scoreDimension"   column="score_dimension"  />
43
-        <result property="scoreIndicator"   column="score_indicator"  />
44
-        <result property="evidenceFile"     column="evidence_file"    />
45
-        <result property="remark"           column="remark"           />
46
-        <result property="importBatch"      column="import_batch"     />
47
-        <result property="sourceType"       column="source_type"      />
48
-        <result property="createBy"         column="create_by"        />
49
-        <result property="createTime"       column="create_time"      />
50
-        <result property="updateBy"         column="update_by"        />
51
-        <result property="updateTime"       column="update_time"      />
52
-        <result property="syncFlag" column="sync_flag" />
6
+        <id     property="id"                     column="id"               />
7
+        <result property="recordDate"             column="record_date"      />
8
+        <result property="deptName"               column="dept_name"        />
9
+        <result property="deptId"                 column="dept_id"          />
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"         />
14
+        <result property="areaId"                 column="area_id"          />
15
+        <result property="patrolPersonnel"        column="inspector_name"   />
16
+        <result property="inspectedName"          column="inspected_name"   />
17
+        <result property="inspectedId"            column="inspected_id"     />
18
+        <result property="problemType"            column="problem_type"     />
19
+        <result property="problemLevel"           column="problem_level"    />
20
+        <result property="problemDesc"            column="problem_desc"     />
21
+        <result property="location"               column="location"         />
22
+        <result property="channelNo"              column="channel_no"       />
23
+        <result property="position"               column="position"         />
24
+        <result property="positionId"             column="position_id"      />
25
+        <result property="resultHandling"         column="result_handling"  />
26
+        <result property="basis"                  column="basis"            />
27
+        <result property="rectificationStatus"    column="rectification_status" />
28
+        <result property="rectificationEvidence"  column="rectification_evidence" />
29
+        <result property="evidenceFile"           column="evidence_file"    />
30
+        <result property="deductScore"            column="deduct_score"     />
31
+        <result property="addScore"               column="add_score"        />
32
+        <result property="scoreDimension"         column="score_dimension"  />
33
+        <result property="scoreIndicator"         column="score_indicator"  />
34
+        <result property="remark"                 column="remark"           />
35
+        <result property="importBatch"            column="import_batch"     />
36
+        <result property="sourceType"             column="source_type"      />
37
+        <result property="createBy"               column="create_by"        />
38
+        <result property="createTime"             column="create_time"      />
39
+        <result property="updateBy"               column="update_by"        />
40
+        <result property="updateTime"             column="update_time"      />
41
+        <result property="syncFlag"               column="sync_flag"        />
53 42
     </resultMap>
54 43
 
55 44
     <sql id="selectVo">
56 45
         SELECT id, record_date, dept_name, dept_id, team_name, team_id, group_name, group_id, area_id,
57 46
                inspector_name, inspected_name, inspected_id, problem_type, problem_level, problem_desc, location,
58
-               channel_no, position, position_id, result_handling, basis, quality_officer, quality_push_leader,
59
-               rectification_status, evidence_material, send_to_relevant, monthly_problem_count, last_month_exceed_three,
60
-               check_personnel, manage_qc_manager, input_time, dept_training_instructor, team_internal_duty, team_leader,
61
-               deduct_score, add_score, score_dimension, score_indicator, evidence_file, remark,
47
+               channel_no, position, position_id, result_handling, basis,
48
+               rectification_status, rectification_evidence, evidence_file,
49
+               deduct_score, add_score, score_dimension, score_indicator, remark,
62 50
                import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
63 51
         FROM ledger_supervision_problem
64 52
         WHERE del_flag = '0'