|
@@ -134,11 +134,11 @@
|
|
|
cssp.course_schedule_id_ =#{courseScheduleId}
|
|
|
</select>
|
|
|
|
|
|
- <delete id="deleteStudentByMusicGroupId" parameterType="map">
|
|
|
- DELETE FROM class_group_student_mapper WHERE class_group_id_ in (select id_ from class_group where music_group_id_ = #{musicGroupId}) and user_id_ = #{userId}
|
|
|
- </delete>
|
|
|
+ <update id="deleteStudentByMusicGroupId" parameterType="map">
|
|
|
+ update class_group_student_mapper set status_ = 'QUIT' where class_group_id_ in (select id_ from class_group where music_group_id_ = #{musicGroupId}) and user_id_ = #{userId}
|
|
|
+ </update>
|
|
|
|
|
|
- <delete id="deleteStudentByClassGroupId">
|
|
|
- DELETE FROM class_group_student_mapper WHERE class_group_id_=#{classGroupId} AND user_id_=#{userId}
|
|
|
- </delete>
|
|
|
+ <update id="deleteStudentByClassGroupId">
|
|
|
+ update class_group_student_mapper set status_ = 'QUIT' WHERE class_group_id_=#{classGroupId} AND user_id_=#{userId}
|
|
|
+ </update>
|
|
|
</mapper>
|