소스 검색

bug修复

wangliang 4 년 전
부모
커밋
9e98b537e1
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      teachcloud-report-business/src/main/resources/mapper/TAExamCourseCollegeTeacherMapper.xml

+ 8 - 1
teachcloud-report-business/src/main/resources/mapper/TAExamCourseCollegeTeacherMapper.xml

@@ -119,7 +119,14 @@
             </if>
         </where> ) t
             <if test="column != null and column != '' and order != null and order != ''">
-                order by t.${column} ${order}
+                <choose>
+                    <when test="column != null and column == 'inspectCollegeName'">
+                        order by t.${column} ${order},t.rank ${order}
+                    </when>
+                    <otherwise>
+                        order by t.${column} ${order}
+                    </otherwise>
+                </choose>
             </if>
     </select>