wangliang 4 سال پیش
والد
کامیت
a705f73bd8
1فایلهای تغییر یافته به همراه16 افزوده شده و 2 حذف شده
  1. 16 2
      teachcloud-report-business/src/main/resources/mapper/TAExamCourseCollegeTeacherMapper.xml

+ 16 - 2
teachcloud-report-business/src/main/resources/mapper/TAExamCourseCollegeTeacherMapper.xml

@@ -39,7 +39,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>
 
@@ -75,7 +82,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>