From 47503d7853b7597811702acb08634a03735cc187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B2=85?= <907037276@qq.com> Date: Mon, 23 Oct 2023 19:23:44 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81swagger=E6=8E=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/resources/sql/jlw/student.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/src/main/resources/sql/jlw/student.md b/web/src/main/resources/sql/jlw/student.md index 56e956e2..d97e4a8a 100644 --- a/web/src/main/resources/sql/jlw/student.md +++ b/web/src/main/resources/sql/jlw/student.md @@ -2149,4 +2149,16 @@ queryStudentTeacherOrUseLogBy getStudentInfoByClassId === -select user_id as id,student_name as name,student.class_id as classId,school_class.class_name as className,student_sn as studentNo from student join school_class on student.class_id=school_class.class_id where student.class_id in (#classIds#) \ No newline at end of file + SELECT + student.user_id AS id, + student_name AS NAME, + student.class_id AS classId, + school_class.class_name AS className, + student_sn AS studentNo, + universities_colleges_name as schoolName + FROM + student + JOIN school_class ON student.class_id = school_class.class_id + JOIN universities_colleges on school_class.universities_colleges_id = universities_colleges.universities_colleges_id + WHERE + student.class_id IN (#classIds#) \ No newline at end of file