|
@@ -16,6 +16,9 @@
|
|
|
<result column="play_status_" property="playStatus"/>
|
|
|
<result column="accompaniment_play_status_" property="accompanimentPlayStatus"/>
|
|
|
<result column="speed_" property="speed"/>
|
|
|
+ <result column="mp3_url_" property="mp3Url"/>
|
|
|
+ <result column="url_" property="url"/>
|
|
|
+ <result column="music_score_name_" property="musicScoreName"/>
|
|
|
<result column="create_time_" property="createTime"/>
|
|
|
<result column="update_time_" property="updateTime"/>
|
|
|
</resultMap>
|
|
@@ -109,22 +112,24 @@
|
|
|
</select>
|
|
|
<select id="queryByScoreIdAndCourseId"
|
|
|
resultMap="CourseScheduleStudentMusicScore">
|
|
|
- SELECT * FROM course_schedule_student_music_score
|
|
|
+ SELECT cssm.*,smsa.mp3_url_,sms.url_,sms.name_ music_score_name_ FROM course_schedule_student_music_score cssm
|
|
|
+ LEFT JOIN sys_music_score_accompaniment smsa ON cssm.music_score_accompaniment_id_ = smsa.id_
|
|
|
+ LEFT JOIN sys_music_score sms ON sms.id_ = smsa.exam_song_id_
|
|
|
<where>
|
|
|
<if test="courseId != null">
|
|
|
- AND course_schedule_id_ = #{courseId}
|
|
|
+ AND cssm.course_schedule_id_ = #{courseId}
|
|
|
</if>
|
|
|
<if test="musicScoreAccompanimentId != null">
|
|
|
- AND music_score_accompaniment_id_ = #{musicScoreAccompanimentId}
|
|
|
+ AND cssm.music_score_accompaniment_id_ = #{musicScoreAccompanimentId}
|
|
|
</if>
|
|
|
<if test="userType != null">
|
|
|
- AND user_type_ = #{userType}
|
|
|
+ AND cssm.user_type_ = #{userType}
|
|
|
</if>
|
|
|
<if test="userId != null">
|
|
|
- AND user_id_ = #{userId}
|
|
|
+ AND cssm.user_id_ = #{userId}
|
|
|
</if>
|
|
|
<if test="downStatus != null">
|
|
|
- AND down_status_ = #{downStatus}
|
|
|
+ AND cssm.down_status_ = #{downStatus}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|