|
@@ -72,20 +72,20 @@
|
|
|
UPDATE course_schedule_student_music_score
|
|
|
SET down_status_ = #{downStatus},play_status_ = #{playStatus},speed_ = #{speed},update_time_ = NOW()
|
|
|
WHERE course_schedule_id_ = #{courseScheduleId}
|
|
|
- <if test="userId">
|
|
|
+ <if test="userId != null">
|
|
|
AND user_id_ = #{userId}
|
|
|
</if>
|
|
|
- <if test="musicScoreAccompanimentId">
|
|
|
+ <if test="musicScoreAccompanimentId != null">
|
|
|
AND music_score_accompaniment_id_ = #{musicScoreAccompanimentId}
|
|
|
</if>
|
|
|
</update>
|
|
|
<update id="closePlayStatus">
|
|
|
UPDATE course_schedule_student_music_score SET play_status_ = 0,accompaniment_play_status_ = 0,update_time_ = NOW()
|
|
|
WHERE course_schedule_id_ = #{scheduleId}
|
|
|
- <if test="musicScoreAccompanimentId">
|
|
|
+ <if test="musicScoreAccompanimentId != null">
|
|
|
AND music_score_accompaniment_id_ = #{musicScoreAccompanimentId}
|
|
|
</if>
|
|
|
- <if test="userId">
|
|
|
+ <if test="userId != null">
|
|
|
AND user_id_ = #{userId}
|
|
|
</if>
|
|
|
</update>
|