|
@@ -0,0 +1,40 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+
|
|
|
+<mapper namespace="com.citupro.module.menduner.flames.mapper.StudentMapper">
|
|
|
+<!--// mybatis-plus_SchoolCooperateEnterprise-->
|
|
|
+ <resultMap id="studentInfoVoMap" type="com.citupro.module.menduner.flames.controller.base.vo.StudentInfoVo" autoMapping="true">
|
|
|
+ <association property="major" column="major_id" resultMap="com.citupro.module.menduner.flames.mapper.MajorMapper.mybatis-plus_Major"></association>
|
|
|
+ <association property="student" column="student_id" resultMap="com.citupro.module.menduner.flames.mapper.StudentMapper.mybatis-plus_Student"></association>
|
|
|
+ <association property="school" resultMap="com.citupro.module.menduner.flames.mapper.SchoolMapper.mybatis-plus_School"></association>
|
|
|
+ <association property="schoolClass" resultMap="com.citupro.module.menduner.flames.mapper.SchoolClassMapper.mybatis-plus_SchoolClass"></association>
|
|
|
+ <association property="studentBiographicalNotes" resultMap="com.citupro.module.menduner.flames.mapper.StudentBiographicalNotesMapper.mybatis-plus_StudentBiographicalNotes"></association>
|
|
|
+ <association property="schoolDepartment" resultMap="com.citupro.module.menduner.flames.mapper.SchoolDepartmentMapper.mybatis-plus_SchoolDepartment"></association>
|
|
|
+
|
|
|
+ <!-- <result ty></result>-->
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectStudentDetail" resultMap="studentInfoVoMap">
|
|
|
+ SELECT
|
|
|
+
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ student
|
|
|
+ LEFT JOIN school ON student.school_id = school.school_id
|
|
|
+ LEFT JOIN major ON student.student_major_id = major.major_id
|
|
|
+ LEFT JOIN school_class ON student.school_class_id = school_class.school_class_id
|
|
|
+ LEFT JOIN student_biographical_notes ON student.student_id = student_biographical_notes.student_id
|
|
|
+ LEFT JOIN school_department ON student.school_department_name = school_department.department_title and student.school_id = school_department.school_id
|
|
|
+ LEFT JOIN practice_submit_record record ON student.student_id = record.student_id
|
|
|
+
|
|
|
+ where
|
|
|
+ <if test="null!=studentIds">
|
|
|
+ student.student_id in
|
|
|
+ <foreach collection="studentIds" item="item" separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+</mapper>
|