wangxx před 3 týdny
rodič
revize
b6a669afb1

+ 8 - 28
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerCombinedImportServiceImpl.java

@@ -777,39 +777,19 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
777 777
     }
778 778
 
779 779
     /** 11. 成绩收集 → ledger_exam_score
780
-     * R2: 类别(0) 期数(1) 考试人员(2) 理论成绩(3) 图像成绩(4) 班组(5) 分类(6) 备注(7) 队室教员(8)
780
+     * R2: 类别(0) 期数(1) 考试人员(2) 理论成绩(3) 图像成绩(4) 班组(5) 分类(6) 备注(7)
781 781
      */
782 782
     private int doExamScore(Sheet sheet, String batchNo, String username) {
783 783
         List<LedgerExamScore> list = new ArrayList<>();
784 784
         for (Object[] c : dataRows(sheet, 2)) {
785 785
             LedgerExamScore o = new LedgerExamScore();
786
-            
787
-            // 按导入顺序映射字段
788
-            o.setExamCategory(str(c, 0));         // 类别
789
-            o.setExamPeriod(str(c, 1));           // 期数
790
-            String personName = str(c, 2);        // 考试人员
791
-            o.setPersonName(personName);
792
-            o.setTheoryScore(decimal(c, 3));      // 理论成绩
793
-            o.setImageScore(decimal(c, 4));       // 图像成绩
794
-            o.setTeamName(str(c, 5));             // 班组
795
-            o.setClassification(str(c, 6));       // 分类
796
-            o.setRemark(str(c, 7));               // 备注(补考分数)
797
-            o.setTeamInstructor(str(c, 8));       // 队室教员
798
-            
799
-            // 根据考试人员名称查找组织信息和ID
800
-            if (personName != null && !personName.trim().isEmpty()) {
801
-                Map<String, Object> orgInfo = resolveOrgInfoByNameWithCache(personName);
802
-                if (!orgInfo.isEmpty()) {
803
-                    o.setPersonId((Long) orgInfo.get("userId"));
804
-                    o.setDeptId((Long) orgInfo.get("deptId"));
805
-                    o.setDeptName((String) orgInfo.get("deptName"));
806
-                    o.setTeamId((Long) orgInfo.get("teamId"));
807
-                    o.setTeamName((String) orgInfo.get("teamName"));
808
-                    o.setGroupId((Long) orgInfo.get("groupId"));
809
-                    o.setGroupName((String) orgInfo.get("groupName"));
810
-                }
811
-            }
812
-            
786
+            o.setExamCategory(str(c, 0));
787
+            o.setExamPeriod(str(c, 1));
788
+            o.setPersonName(str(c, 2));
789
+            o.setTheoryScore(decimal(c, 3));
790
+            o.setImageScore(decimal(c, 4));
791
+            o.setTeamName(str(c, 5));
792
+            o.setRemark(str(c, 7));
813 793
             o.setImportBatch(batchNo);
814 794
             o.setSourceType("1");
815 795
             o.setCreateBy(username);

+ 15 - 4
airport-ledger/src/main/resources/mapper/ledger/LedgerChannelPassRateMapper.xml

@@ -6,22 +6,33 @@
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" />
14
+        <result property="groupLeader" column="group_leader" />
15
+        <result property="teamInternalDuty" column="team_internal_duty" />
10 16
         <result property="channelNo" column="channel_no" />
11 17
         <result property="totalCount" column="total_count" />
12 18
         <result property="passCount" column="pass_count" />
13 19
         <result property="passRate" column="pass_rate" />
14 20
         <result property="remark" column="remark" />
15 21
         <result property="importBatch" column="import_batch" />
16
-        <result property="sourceType" column="source_type" />        <result property="createBy"   column="create_by"   />
22
+        <result property="sourceType" column="source_type" />
23
+        <result property="createBy" column="create_by" />
17 24
         <result property="createTime" column="create_time" />
18
-        <result property="updateBy"   column="update_by"   />
25
+        <result property="updateBy" column="update_by" />
19 26
         <result property="updateTime" column="update_time" />
20 27
         <result property="syncFlag" column="sync_flag" />
28
+        <result property="responsibleId" column="responsible_id" />
21 29
     </resultMap>
22 30
 
23 31
     <sql id="selectVo">
24
-        SELECT id, record_date,dept_name,team_name,channel_no,total_count,pass_count,pass_rate,remark,import_batch,source_type, create_by, create_time, update_by, update_time, sync_flag
32
+        SELECT id, record_date, dept_name, dept_id, team_name, team_id, group_name, group_id,
33
+               group_leader, team_internal_duty, channel_no, total_count, pass_count, pass_rate,
34
+               remark, import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag,
35
+               responsible_id
25 36
         FROM ledger_channel_pass_rate
26 37
         WHERE del_flag = '0'
27 38
     </sql>
@@ -45,4 +56,4 @@
45 56
         set sync_flag = '1'
46 57
         where sync_flag = '0'
47 58
     </update>
48
-</mapper>
59
+</mapper>

+ 20 - 4
airport-ledger/src/main/resources/mapper/ledger/LedgerComplaintMapper.xml

@@ -12,20 +12,36 @@
12 12
         <result property="passengerName" column="passenger_name" />
13 13
         <result property="complaintType" column="complaint_type" />
14 14
         <result property="complaintDesc" column="complaint_desc" />
15
+        <result property="passengerDemand" column="passenger_demand" />
16
+        <result property="channelSource" column="channel_source" />
17
+        <result property="isResponsible" column="is_responsible" />
18
+        <result property="responsibleCaptain" column="responsible_captain" />
19
+        <result property="teamInternalDuty" column="team_internal_duty" />
15 20
         <result property="resultHandling" column="result_handling" />
16 21
         <result property="deductScore" column="deduct_score" />
17 22
         <result property="evidenceFile" column="evidence_file" />
18 23
         <result property="remark" column="remark" />
19 24
         <result property="importBatch" column="import_batch" />
20
-        <result property="sourceType" column="source_type" />        <result property="createBy"   column="create_by"   />
25
+        <result property="sourceType" column="source_type" />
26
+        <result property="createBy" column="create_by" />
21 27
         <result property="createTime" column="create_time" />
22
-        <result property="updateBy"   column="update_by"   />
28
+        <result property="updateBy" column="update_by" />
23 29
         <result property="updateTime" column="update_time" />
24 30
         <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" />
25 36
     </resultMap>
26 37
 
27 38
     <sql id="selectVo">
28
-        SELECT id, record_date,dept_name,team_name,responsible_name,flight_no,passenger_name,complaint_type,complaint_desc,result_handling,deduct_score,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time, sync_flag
39
+        SELECT id, record_date, dept_name, dept_id, team_name, team_id, group_name, group_id,
40
+               responsible_name, responsible_id, flight_no, passenger_name,
41
+               complaint_type, complaint_desc, passenger_demand, channel_source,
42
+               is_responsible, responsible_captain, team_internal_duty,
43
+               result_handling, deduct_score, evidence_file, remark,
44
+               import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
29 45
         FROM ledger_complaint
30 46
         WHERE del_flag = '0'
31 47
     </sql>
@@ -49,4 +65,4 @@
49 65
         set sync_flag = '1'
50 66
         where sync_flag = '0'
51 67
     </update>
52
-</mapper>
68
+</mapper>