Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
engine-class-work
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuchengjiu
engine-class-work
Commits
244590fd
Commit
244590fd
authored
Feb 10, 2022
by
Mindfaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
16ee9c0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SpecialSqlMapper.java
...a/cn/exploring/engine/server/db/dao/SpecialSqlMapper.java
+2
-2
No files found.
server-db/src/main/java/cn/exploring/engine/server/db/dao/SpecialSqlMapper.java
View file @
244590fd
...
...
@@ -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 >= '${startTime}' </if>"
+
"<if test = 'endTime != null'> AND '${endTime} ' >= 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>"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment