|
|
@@ -20,7 +20,7 @@
|
|
|
t7.name AS gender_cn,
|
|
|
t8.name AS stduyStatus,
|
|
|
t2.gender,
|
|
|
- t10.sex AS genderCn,
|
|
|
+ t10.name AS genderCn,
|
|
|
t2.birth_date,
|
|
|
t2.avatar,
|
|
|
t6.name AS nation,
|
|
|
@@ -31,9 +31,6 @@
|
|
|
t8.name AS stduy_status,
|
|
|
t13.name AS roll_modality,
|
|
|
t11.name AS student_form,
|
|
|
- MAX(CASE WHEN t10.feeitemcode LIKE '999010604%' AND t10.beltcode = #{dto.beltcode} THEN t10.jfzt ELSE '欠费' END) AS jxf,
|
|
|
- MAX(CASE WHEN t10.feeitemcode = 103042766003001 AND t10.beltcode = #{dto.beltcode} THEN t10.jfzt ELSE '欠费' END) AS ssf,
|
|
|
- MAX(CASE WHEN t10.feeitemcode LIKE '999010603%' AND t10.beltcode = #{dto.beltcode} THEN t10.jfzt ELSE '欠费' END) AS jcf,
|
|
|
CONCAT(t16.name, ' ', t15.room_name, ' ', t14.bed_number) AS bed_info
|
|
|
FROM base_student t1
|
|
|
INNER JOIN xjr_user t2 ON t1.user_id = t2.id
|
|
|
@@ -46,7 +43,7 @@
|
|
|
LEFT JOIN xjr_dictionary_detail t11 ON t11.code = t3.student_type
|
|
|
LEFT JOIN xjr_dictionary_detail t12 ON t12.code = t3.archives_status
|
|
|
LEFT JOIN xjr_dictionary_detail t13 ON t13.code = t3.roll_modality
|
|
|
- LEFT JOIN pb_v_xsxxsfytb t10 ON t10.Studentcode = t2.credential_type
|
|
|
+ LEFT JOIN xjr_dictionary_detail t10 ON t2.gender = t10.code
|
|
|
LEFT JOIN room_bed t14 ON t14.student_user_id = t2.id
|
|
|
LEFT JOIN room t15 ON t14.room_id = t15.id
|
|
|
LEFT JOIN base_office_build t16 ON t15.office_build_id = t16.id
|
|
|
@@ -73,10 +70,6 @@
|
|
|
OR t2.mobile LIKE concat('%', #{dto.keyWord}, '%')
|
|
|
)
|
|
|
</if>
|
|
|
- GROUP BY t2.id, t2.name, t1.student_id, t2.mobile, t5.mobile, t5.name, t4.name,
|
|
|
- (SELECT mobile FROM base_student_family_member WHERE delete_mark = 0 AND user_id = t2.id AND is_guardian = 1),
|
|
|
- t7.name, t8.name, t2.gender, t10.sex, t2.birth_date, t2.avatar, t6.name,
|
|
|
- t12.name, t13.name, t11.name,t3.stduy_status,t3.archives_status,t3.roll_modality,CONCAT(t16.name, ' ', t15.room_name, ' ', t14.bed_number)
|
|
|
</select>
|
|
|
|
|
|
<select id="getInfoById" resultType="com.xjrsoft.module.student.vo.BaseStudentInfoDetailVo">
|
|
|
@@ -94,7 +87,7 @@
|
|
|
WHERE delete_mark = 0
|
|
|
AND user_id = t2.id
|
|
|
AND is_guardian = 1) AS guardian_phone,
|
|
|
- t8.name AS archives_status,
|
|
|
+ t8.name AS archives_status,
|
|
|
t7.name AS stduy_status,
|
|
|
t9.name AS roll_modality,
|
|
|
t2.birth_date,
|