我的学生加入查看详情
This commit is contained in:
@@ -91,6 +91,8 @@ public class SrsStudent extends BaseEntity
|
||||
})
|
||||
@TableField(exist = false)
|
||||
private SrsMajors srsMajors;
|
||||
@TableField(exist = false)
|
||||
private CphStuExtraInfo cphStuExtraInfo;
|
||||
/** 所属班级ID */
|
||||
|
||||
private Long classId;
|
||||
|
@@ -32,6 +32,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<association property="srsMajors" column="major_id" javaType="srsMajors" resultMap="SrsMajorsResult" />
|
||||
<association property="srsClass" column="class_id" javaType="srsClass" resultMap="SrsClassResult" />
|
||||
<association property="cphTeacher" column="teacher_id" javaType="cphTeacher" resultMap="CphTeacherResult" />
|
||||
<association property="cphStuExtraInfo" column="stu_no" javaType="cphStuExtraInfo" resultMap="CphStuExtraInfoResult" />
|
||||
</resultMap>
|
||||
<resultMap id="CphStuExtraInfoResult" type="CphStuExtraInfo">
|
||||
<result property="stuNo" column="stu_no"/>
|
||||
<result property="mz" column="mz"/>
|
||||
<result property="zzmm" column="zzmm"/>
|
||||
<result property="jg" column="jg"/>
|
||||
<result property="xx" column="xx"/>
|
||||
</resultMap>
|
||||
<resultMap id="CphTeacherResult" type="CphTeacher">
|
||||
<result property="teacherId" column="teacher_id"/>
|
||||
@@ -77,13 +85,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<sql id="selectSrsStudentJoin">
|
||||
select s.stu_id,s.stu_no, s.name, s.gender, s.birthday,AES_DECRYPT(UNHEX(s.id_card),'zhxg') as id_card , d.dept_id, m.major_id, c.class_id, s.phone, s.address,
|
||||
s.status, s.status as status2,s.create_by, s.create_time, s.update_by, s.update_time, s.del_flag,s.xhk,s.bank_addr,e.name as cphName,f.grade_name,
|
||||
d.*,m.*,c.*
|
||||
d.*,m.*,c.*,g.*
|
||||
from srs_student s
|
||||
left JOIN srs_class c ON s.class_id = c.class_id
|
||||
left JOIN srs_majors m ON c.major_id = m.major_id
|
||||
left JOIN sys_dept d ON m.college_id = d.dept_id
|
||||
left join cph_teacher as e on c.teacher_id = e.teacher_id
|
||||
left join srs_grade as f on f.grade_id=c.grade_id
|
||||
left join cph_stu_extra_info g on g.stu_no=s.stu_no
|
||||
</sql>
|
||||
<select id="selectSrsStudentList" parameterType="SrsStudent" resultMap="SrsStudentResult">
|
||||
<include refid="selectSrsStudentVo"/>
|
||||
|
Reference in New Issue
Block a user