Commit 16ee9c0a authored by Mindfaker's avatar Mindfaker

fix

parent e9c91c11
......@@ -223,7 +223,7 @@ public interface SpecialSqlMapper {
" ) 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"+
"ORDER by ${sort} ${order} " +
"LIMIT ${(page - 1) * size}, ${page * size} " +
"LIMIT ${(page - 1) * limit}, ${page * limit} " +
"</script>"
)
List<Map> selectPoint(@Param("studentName") String studentName, @Param("studentUniqueId") String studentUniqueId,
......
......@@ -19,10 +19,10 @@ public class StudentController {
@GetMapping("selectStudent")
public Object selectClass(@RequestParam String studentName, @RequestParam String studentId, @RequestParam Integer classId,
public Object selectClass(@RequestParam String studentName, @RequestParam String studentUniqueId, @RequestParam Integer classId,
@RequestParam(required = false, defaultValue = "1") Integer page, @RequestParam(required = false, defaultValue = "10") Integer limit,
@RequestParam(required = false, defaultValue = "add_time") String sort, @RequestParam(required = false, defaultValue = "desc") String order) {
return ResponseUtil.ok(studentInfoService.selectStudentInfoByWeb(studentName, studentId, null, classId, page, limit, sort, order));
return ResponseUtil.ok(studentInfoService.selectStudentInfoByWeb(studentName, studentUniqueId, null, classId, page, limit, sort, order));
}
@GetMapping("randomSelect")
......
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