wangliang 1 жил өмнө
parent
commit
990145f055

+ 8 - 5
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -638,8 +638,10 @@
             </if>
             and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
         </where>
-        group by
-        tee.id,tees.room_code,tee.name,teea.id,teea.code,tees.`identity`,tees.name,leftExamCount,statusTemp,tes.mobile_number,t.breach_status,tees.class_no) t
+        group by t.id,
+        tees.room_code,
+        tees.room_name,
+        tees.course_code,tee.name,teea.id,teea.code,tees.`identity`,tees.name,leftExamCount,statusTemp,tes.mobile_number,t.breach_status,tees.class_no) t
         <where>
             <if test="status != null and status != '' or status == 0">
                 <choose>
@@ -729,9 +731,10 @@
             </if>
             and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
         </where>
-        group by
-        tee.id,tees.room_code,tee.name,teea.id,teea.code,tees.`identity`,tees.name,leftExamCount,statusTemp,tes.mobile_number,t.breach_status,tees.class_no)
-        t
+        group by t.id,
+        tees.room_code,
+        tees.room_name,
+        tees.course_code,tee.name,teea.id,teea.code,tees.`identity`,tees.name,leftExamCount,statusTemp,tes.mobile_number,t.breach_status,tees.class_no) t
         <where>
             <if test="status != null and status != '' or status == 0">
                 <choose>