Ver Fonte

BUG fix

wangliang há 1 ano atrás
pai
commit
5eb0415a51

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/service/impl/TIeReportServiceImpl.java

@@ -101,7 +101,7 @@ public class TIeReportServiceImpl implements TIeReportService {
         for (TEExamSummary t : teExamSummaryList) {
             examTotal = examTotal + t.getTotalCount();
             absentNum = absentNum + t.getAbsentCount();
-            actualExamTotal = actualExamTotal + t.getFinishCount();
+            actualExamTotal = examTotal - absentNum;
         }
         // 每日已考人数
         List<Map<String, Object>> doneCountByDay = tOeExamRecordMapper.getDoneCountByDay(orgId, examId, examActivityId, roomCode, courseCode);

+ 16 - 179
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -10,185 +10,22 @@
                teea.code as       examActivityCode,
                t.exam_student_id  examStudentId,
                t.id               examRecordId,
-        INSERT
-        (
-        rpad
-        (
-        substring
-        (
-        s
-        .
-        identity
-        ,
-        1
-        ,
-        2
-        )
-        ,
-        char_length
-        (
-        s
-        .
-        identity
-        )
-        ,
-        '*'
-        )
-        ,
-        char_length
-        (
-        s
-        .
-        identity
-        )
-        -
-        1
-        ,
-        char_length
-        (
-        s
-        .
-        identity
-        )
-        ,
-        substring
-        (
-        s
-        .
-        identity
-        ,
-        char_length
-        (
-        s
-        .
-        identity
-        )
-        -
-        1
-        ,
-        char_length
-        (
-        s
-        .
-        identity
-        )
-        -
-        2
-        )
-        )
-        as
-        identity
-        ,
-        s
-        .
-        room_code
-        roomCode
-        ,
-        s
-        .
-        room_name
-        roomName
-        ,
-        s
-        .
-        name
-        name
-        ,
-        s
-        .
-        course_name
-        courseName
-        ,
-        s
-        .
-        course_code
-        courseCode
-        ,
-        IFNULL
-        (
-        t
-        .
-        paper_download
-        ,
-        1
-        )
-        paperDownload
-        ,
-        t
-        .
-        status
-        statusCode
-        ,
-        TRUNCATE
-        (
-        t
-        .
-        answer_progress
-        ,
-        2
-        )
-        progress
-        ,
-        IFNULL
-        (
-        t
-        .
-        client_current_ip
-        ,
-        '无'
-        )
-        clientCurrentIp
-        ,
-        IFNULL
-        (
-        t
-        .
-        warning_count
-        ,
-        0
-        )
-        as
-        warningCount
-        ,
-        IFNULL
-        (
-        t
-        .
-        breach_status
-        ,
-        1
-        )
-        as
-        breachStatus
-        ,
-        IFNULL
-        (
-        t
-        .
-        client_websocket_status
-        ,
-        'OFF_LINE'
-        )
-        as
-        clientWebsocketStatus
-        ,
-        t
-        .
-        client_last_sync_time
-        as
-        updateTime
-        ,
-        t
-        .
-        monitor_video_source
-        as
-        monitorVideoSource
-        ,
-        t
-        .
-        monitor_record
-        as
-        monitorRecord
+        INSERT(rpad(substring(s.identity, 1, 2), char_length(s.identity), '*'),char_length(s.identity)-1,char_length(s.identity),substring(s.identity, char_length(s.identity) - 1 , char_length(s.identity) - 2)) as identity,
+        s.room_code roomCode,
+        s.room_name roomName,
+        s.name name,
+        s.course_name courseName,
+        s.course_code courseCode,
+        IFNULL (t.paper_download ,1) paperDownload,
+        t.status statusCode,
+        TRUNCATE (t.answer_progress ,2) progress,
+        IFNULL (t.client_current_ip ,'无' ) clientCurrentIp,
+        IFNULL (t.warning_count ,0) as warningCount,
+        IFNULL (t.breach_status ,1) as breachStatus,
+        IFNULL (t.client_websocket_status ,'OFF_LINE') as clientWebsocketStatus,
+        t.client_last_sync_time as updateTime,
+        t.monitor_video_source as monitorVideoSource,
+        t.monitor_record as monitorRecord
     </sql>
 
     <sql id="invigilatePageMiddle">