wangliang 3 년 전
부모
커밋
1493694f2b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      distributed-print-business/src/main/resources/mapper/TSyncExamStudentScoreMapper.xml

+ 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>