Commit 244590fd authored by Mindfaker's avatar Mindfaker

fix

parent 16ee9c0a
......@@ -212,7 +212,7 @@ public interface SpecialSqlMapper {
@Select("<script> " +
"SELECT t1.*, t2.class_name FROM " +
"(SELECT * FROM " +
"(SELECT id, student_unique_id, `name`, class_id FROM student_info WHERE deleted = FALSE " +
"(SELECT id, student_unique_id, `name`, class_id, add_time FROM student_info WHERE deleted = FALSE " +
"<if test = 'studentName != null'> AND `name` like '%${studentName}%' </if>" +
"<if test = 'studentUniqueId != null'> AND student_unique_id like '%${studentUniqueId}%' </if>" +
"<if test = 'classId != null'> AND class_id = ${classId} </if>" +
......@@ -221,7 +221,7 @@ public interface SpecialSqlMapper {
"<if test = 'startTime != null'> AND record_time &gt;= '${startTime}' </if>" +
"<if test = 'endTime != null'> AND '${endTime} ' &gt;= record_time </if>" +
" ) point_info ON target_stu.id = point_info.student_id) t1 " +
" LEFT JOIN (SELECT id, class_name FROM class_info WHERE deleted = FALSE ) t2 ON t1.class_id = t2.id"+
" LEFT JOIN (SELECT id, class_name FROM class_info WHERE deleted = FALSE ) t2 ON t1.class_id = t2.id "+
"ORDER by ${sort} ${order} " +
"LIMIT ${(page - 1) * limit}, ${page * limit} " +
"</script>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment