wangliang 3 жил өмнө
parent
commit
1493694f2b

+ 2 - 1
distributed-print-business/src/main/resources/mapper/TSyncExamStudentScoreMapper.xml

@@ -4,7 +4,7 @@
 
     <sql id="headCommonSql">
          select
-            tsess.id,
+            distinct tsess.id,
             bs.id as semesterId,
             bs.name as semesterName,
             tsess.exam_id as examId,
@@ -63,6 +63,7 @@
             <if test="courseCode != null and courseCode != ''">
                 and tsess.subject_code LIKE CONCAT('%',#{courseCode},'%')
             </if>
+            order by tsess.exam_id
         </where>
     </sql>