Browse Source

学员考勤列表按考勤状态和回访状态排序,排除移动端

zouxuan 4 years ago
parent
commit
2525c64ea0

+ 3 - 1
mec-biz/src/main/resources/config/mybatis/StudentAttendanceMapper.xml

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