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