INSERT INTO music_group_subject_plan
(id_,music_group_id_,subject_id_,expected_student_num_,apply_student_num_,fee_,kit_group_purchase_type_,deposit_fee_,create_time_,update_time_)
VALUES(#{id},#{musicGroupId},#{subjectId},#{expectedStudentNum},#{applyStudentNum},#{fee},#{kitGroupPurchaseType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{depositFee},#{createTime},#{updateTime})
UPDATE music_group_subject_plan
subject_id_ = #{subjectId},
apply_student_num_ = #{applyStudentNum},
fee_ = #{fee},
kit_group_purchase_type_ = #{kitGroupPurchaseType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
update_time_ = #{updateTime},
deposit_fee_ = #{depositFee},
expected_student_num_ = #{expectedStudentNum},
music_group_id_ = #{musicGroupId},
WHERE id_ = #{id}
DELETE FROM music_group_subject_plan WHERE id_ = #{id}