@ -39,7 +39,7 @@ getStudentByNo
===
SELECT
core_user.old_id AS userId,
core_user.NAME AS NAME,
student.student_name AS NAME,
core_role.NAME AS roleName,
universities_colleges.universities_colleges_id AS schoolId,
school_class.class_id AS classId,
@ -49,7 +49,7 @@ getStudentByNo
universities_colleges.universities_colleges_name AS schoolName,
university_faculty.university_faculty_id AS collegeId,
university_faculty.university_faculty_name AS collegeName,
student.student _id AS studentId
student.old _id AS studentId
FROM
core_user
JOIN student ON core_user.CODE = student.student_sn
@ -69,6 +69,9 @@ getStudentByNoOfNet
core_user.old_id AS userId,
core_user.NAME AS NAME,
core_role.NAME AS roleName,
core_user.CODE as username,
4 as roleId,
student.student_sn as studentNo,
universities_colleges.old_school_id AS schoolId,
school_class.old_class_id AS classId,
university_system.university_system_id AS majorId,
@ -77,7 +80,7 @@ getStudentByNoOfNet
universities_colleges.universities_colleges_name AS schoolName,
university_faculty.university_faculty_id AS collegeId,
university_faculty.university_faculty_name AS collegeName,
student.student _id AS studentId
student.old _id AS studentId
FROM
core_user
JOIN student ON core_user.CODE = student.student_sn
@ -95,7 +98,7 @@ getTeacherByNo
===
SELECT
core_user.old_id AS userId,
core_user.NAME AS NAME,
teacher.teacher_name AS NAME,
core_role.NAME AS roleName,
universities_colleges.universities_colleges_id AS schoolId,
university_system.university_system_id AS majorId,
@ -103,7 +106,7 @@ getTeacherByNo
universities_colleges.universities_colleges_name AS schoolName,
university_faculty.university_faculty_id AS collegeId,
university_faculty.university_faculty_name AS collegeName,
teacher.teacher _id AS teacherId
teacher.old _id AS teacherId
FROM
core_user
JOIN teacher ON core_user.CODE = teacher.teacher_job_number
@ -122,6 +125,7 @@ getTeacherByNoOfNet
core_user.old_id AS userId,
core_user.NAME AS NAME,
core_role.NAME AS roleName,
3 as roleId,
universities_colleges.old_school_id AS schoolId,
university_system.university_system_id AS majorId,
university_system.university_system_name AS majorName,
@ -232,3 +236,17 @@ and (cu.name like #"%"+keyword+"%"# or cu.code like #"%"+keyword+"%"#)
and (cu.code like #"%"+keyword+"%"#)
@}
order by cu.CREATE_TIME
findBySchoolId
===
select * from core_user where org_id = #schoolId #
findAll
===
select * from core_user
deleteById1
===
delete from core_user where ID = #userId #