|
@@ -5,6 +5,7 @@
|
|
|
<resultMap id="studentManageListDto" type="com.ym.mec.biz.dal.dto.StudentManageListDto">
|
|
|
<result property="userId" column="user_id_"/>
|
|
|
<result property="realName" column="real_name_"/>
|
|
|
+ <result property="nation" column="nation_"/>
|
|
|
<result property="parentsPhone" column="parents_phone_"/>
|
|
|
<result property="parentsName" column="real_name_"/>
|
|
|
<result property="gender" column="gender_" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
@@ -119,7 +120,7 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="findStudentsByOrganId" resultMap="studentManageListDto">
|
|
|
- SELECT su.id_ user_id_,su.username_,su.gender_,su.phone_ parents_phone_,su.real_name_,su.birthdate_
|
|
|
+ SELECT su.id_ user_id_,su.username_,su.gender_,su.phone_ parents_phone_,su.real_name_,su.birthdate_,su.nation_
|
|
|
FROM sys_user su
|
|
|
<include refid="findStudentsByOrganIdSql"/>
|
|
|
ORDER BY su.create_time_ DESC
|
|
@@ -148,7 +149,7 @@
|
|
|
</select>
|
|
|
<select id="findStudentBaseInfoByUserID" resultMap="studentManageListDto">
|
|
|
SELECT su.username_,su.gender_,su.birthdate_,sr.parents_name_ real_name_,su.id_ user_id_,
|
|
|
- sr.parents_phone_,sr.current_class_,sr.current_grade_
|
|
|
+ sr.parents_phone_,sr.current_class_,sr.current_grade_,su.nation_
|
|
|
FROM sys_user su
|
|
|
LEFT JOIN student_registration sr ON su.id_ = sr.user_id_
|
|
|
WHERE su.id_ =#{userId} AND su.user_type_ = 'STUDENT' LIMIT 1
|