wangliang преди 4 години
родител
ревизия
ecdf1a1681
променени са 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

@@ -187,7 +187,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>
 </mapper>