|
|
@@ -5,25 +5,26 @@
|
|
|
<mapper namespace="com.education.business.mapper.education.GoalInfoMapper">
|
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.education.model.dto.GoalInfoDto">
|
|
|
- <id property="id" column="id" />
|
|
|
- <result property="subjectId" column="subject_id" />
|
|
|
- <result property="schoolType" column="school_type" />
|
|
|
- <result property="courseSectionId" column="course_section_id" />
|
|
|
- <result property="courseId" column="course_id" />
|
|
|
- <result property="gradeId" column="grade_id" />
|
|
|
- <result property="courseName" column="course_name" />
|
|
|
- <result property="courseSectionName" column="course_section_name"/>
|
|
|
- <result property="content" column="content" />
|
|
|
- <result property="gOriented" column="g_oriented" />
|
|
|
- <result property="pScoreStd" column="p_score_std" />
|
|
|
- <result property="sScoreStd" column="s_score_std" />
|
|
|
- <result property="rScoreStd" column="r_score_std" />
|
|
|
- <result property="eScoreStd" column="e_score_std" />
|
|
|
- <result property="nScoreStd" column="n_score_std" />
|
|
|
- <result property="createUser" column="create_user" />
|
|
|
- <result property="createDate" column="create_date" />
|
|
|
- <result property="updateDate" column="update_date" />
|
|
|
- <result property="knowPoints" column="know_points" />
|
|
|
+ <id property="id" column="id"/>
|
|
|
+ <result property="subjectId" column="subject_id"/>
|
|
|
+ <result property="schoolType" column="school_type"/>
|
|
|
+ <result property="courseSectionId" column="course_section_id"/>
|
|
|
+ <result property="courseId" column="course_id"/>
|
|
|
+ <result property="gradeId" column="grade_id"/>
|
|
|
+ <result property="courseName" column="course_name"/>
|
|
|
+ <result property="courseSectionName" column="course_section_name"/>
|
|
|
+ <result property="content" column="content"/>
|
|
|
+ <result property="gOriented" column="g_oriented"/>
|
|
|
+ <result property="pScoreStd" column="p_score_std"/>
|
|
|
+ <result property="sScoreStd" column="s_score_std"/>
|
|
|
+ <result property="rScoreStd" column="r_score_std"/>
|
|
|
+ <result property="eScoreStd" column="e_score_std"/>
|
|
|
+ <result property="nScoreStd" column="n_score_std"/>
|
|
|
+ <result property="createUser" column="create_user"/>
|
|
|
+ <result property="knowPoints" column="know_points"/>
|
|
|
+ <result property="publishFlag" column="publish_flag"/>
|
|
|
+ <result property="createDate" column="create_date"/>
|
|
|
+ <result property="updateDate" column="update_date"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -38,7 +39,7 @@
|
|
|
left join course_info
|
|
|
on goal_info.course_id = course_info.id
|
|
|
left join course_section
|
|
|
- ON goal_info.course_id = course_section.course_id AND goal_info.course_section_id = course_section.id
|
|
|
+ ON goal_info.course_id = course_section.course_id AND goal_info.course_section_id = course_section.id
|
|
|
<where>
|
|
|
<if test="goalInfo.gOriented != null and goalInfo.gOriented != ''">
|
|
|
<bind name="gOriented" value="'%' + goalInfo.gOriented + '%'"/>
|
|
|
@@ -49,13 +50,21 @@
|
|
|
and goal_info.subject_id = #{goalInfo.subjectId}
|
|
|
</if>
|
|
|
|
|
|
- <if test="goalInfo.courseSectionId != null">
|
|
|
- and goal_info.course_section_id = #{goalInfo.courseSectionId}
|
|
|
+ <if test="goalInfo.gradeId != null">
|
|
|
+ and goal_info.grade_id = #{goalInfo.gradeId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="goalInfo.schoolType != null">
|
|
|
+ and goal_info.school_type = #{goalInfo.schoolType}
|
|
|
</if>
|
|
|
|
|
|
<if test="goalInfo.courseId != null">
|
|
|
and goal_info.course_id = #{goalInfo.courseId}
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="goalInfo.courseSectionId != null">
|
|
|
+ and goal_info.course_section_id = #{goalInfo.courseSectionId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
</mapper>
|