Browse Source

bug修复

wangliang 4 years ago
parent
commit
ecdf1a1681

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

@@ -187,7 +187,14 @@
             </if>
             </if>
         </where> ) t
         </where> ) t
         <if test="column != null and column != '' and order != null and order != ''">
         <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>
         </if>
     </select>
     </select>
 </mapper>
 </mapper>