浏览代码

网络教室

zouxuan 3 年之前
父节点
当前提交
3efb93b020

+ 3 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/dao/CourseScheduleStudentPaymentDao.java

@@ -70,7 +70,9 @@ public interface CourseScheduleStudentPaymentDao extends BaseMapper<CourseSchedu
     void adjustPlayMidi(@Param("courseScheduleId") long courseScheduleId, @Param("userId") String userId, @Param("content") String content);
 
     //调整伴奏
-    void adjustExamSong(@Param("courseScheduleId") long courseScheduleId, @Param("userId") Long userId, @Param("examSongJson") String examSongJson);
+    void adjustExamSong(@Param("courseScheduleId") long courseScheduleId,
+                        @Param("userId") Long userId,
+                        @Param("musicSheetJson") String musicSheetJson);
 
     //获取课程学员关联
     List<CourseScheduleStudentPayment> queryByCourseId(@Param("courseScheduleId") Long courseScheduleId);

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseScheduleStudentPaymentMapper.xml

@@ -54,7 +54,7 @@
         </where>
     </update>
     <update id="adjustExamSong">
-        UPDATE course_schedule_student_payment SET music_sheet_download_json_ = #{examSongJson}
+        UPDATE course_schedule_student_payment SET music_sheet_download_json_ = #{musicSheetJson}
         WHERE course_id_ = #{courseScheduleId}
         <if test="userId != null">
             AND user_id_ = #{userId}
@@ -74,7 +74,7 @@
             </if>
         </set>
         <where>
-            cssp.course_schedule_id_ = #{courseScheduleId}
+            cssp.course_id_ = #{scheduleId}
             <if test="userId != null and userId != ''">
                 AND FIND_IN_SET(cssp.user_id_,#{userId})
             </if>