Просмотр исходного кода

课表列表学员列表排序优化

zouxuan 4 лет назад
Родитель
Сommit
3ba84d8728

+ 2 - 4
mec-biz/src/main/resources/config/mybatis/StudentAttendanceMapper.xml

@@ -507,10 +507,8 @@
         <include refid="findStudentAttendanceSql"/>
         GROUP BY cssp.id_
         ORDER BY
-        <if test="courseScheduleId != null and orderFlag == 1">
-            <if test="courseScheduleId != null or (search != null and search != '')">
-                status_ DESC,visitFlag,
-            </if>
+        <if test="orderFlag == 1 and search != null and search != ''">
+            status_ DESC,visitFlag,cssp.id_,
         </if>
         CONCAT(cs.class_date_, ' ', cs.start_class_time_) ASC
         <include refid="global.limit"/>