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>