瀏覽代碼

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

zouxuan 4 年之前
父節點
當前提交
2525c64ea0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      mec-biz/src/main/resources/config/mybatis/StudentAttendanceMapper.xml

+ 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"/>