|
|
@@ -8,7 +8,7 @@
|
|
|
t2.name AS student_name,
|
|
|
t1.student_id,
|
|
|
t2.mobile AS phone,
|
|
|
- CONCAT(t5.name, ' ', t5.mobile) AS teacher_name,
|
|
|
+ t2.mobile AS phone,t5.name as teacher_name,
|
|
|
t4.name AS class_name,
|
|
|
t6.mobile AS guardian_phone
|
|
|
FROM base_student t1
|
|
|
@@ -42,7 +42,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="getInfoById" resultType="com.xjrsoft.module.student.vo.BaseStudentInfoDetailVo">
|
|
|
- SELECT t2.id,t2.name AS student_name,t1.student_id,t2.mobile AS phone,t5.name as teacher_name, t5.mobile AS teacher_phone,t4.name AS class_name,
|
|
|
+ SELECT t2.id,t2.name AS student_name,t1.student_id,CONCAT(t5.name, ' ', t5.mobile) AS teacher_name, t5.mobile AS teacher_phone,t4.name AS class_name,
|
|
|
(SELECT mobile FROM base_student_family_member WHERE delete_mark = 0 AND user_id = t2.id AND is_guardian = 1) AS guardian_phone,
|
|
|
t8.name AS archives_status,t7.name AS stduy_status,t9.name AS roll_modality,t2.birth_date, t2.gender,t2.avatar,
|
|
|
t6.name AS nation,t10.name AS major_set_name,t3.archives_status as archivesStatusCode,t3.stduy_status as stduyStatusCode,t3.roll_modality as rollModalityCode
|