<?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.ruoyi.business.test.mapper.TestStudentsMapper">
    
    <resultMap type="TestStudents" id="TestStudentsResult">
        <result property="studentId"    column="student_id"    />
        <result property="name"    column="name"    />
        <result property="age"    column="age"    />
        <result property="gender"    column="gender"    />
        <result property="major"    column="major"    />
        <result property="enrollmentDate"    column="enrollment_date"    />
    </resultMap>

    <resultMap id="TestStudentsTestStudentsScoresResult" type="TestStudents" extends="TestStudentsResult">
        <collection property="testStudentsScoresList" notNullColumn="sub_score_id" javaType="java.util.List" resultMap="TestStudentsScoresResult" />
    </resultMap>

    <resultMap type="TestStudentsScores" id="TestStudentsScoresResult">
        <result property="scoreId"    column="sub_score_id"    />
        <result property="studentId"    column="sub_student_id"    />
        <result property="courseName"    column="sub_course_name"    />
        <result property="score"    column="sub_score"    />
    </resultMap>

</mapper>