INSERT INTO exam_song (id_,song_name_,song_author_,subject_list_,level_list_,type_,file_url_list_,create_time_,update_time_,tenant_id_) VALUES(#{id},#{songName},#{songAuthor},#{subjectList},#{levelList},#{type, typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler},#{fileUrlList},NOW(),NOW(),#{tenantId}) UPDATE exam_song level_list_ = #{levelList}, subject_list_ = #{subjectList}, file_url_list_ = #{fileUrlList}, song_author_ = #{songAuthor}, type_ = #{type, typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}, song_name_ = #{songName}, del_flag_ = #{delFlag} tenant_id_ = #{tenantId}, update_time_ = NOW() WHERE id_ = #{id} UPDATE exam_song SET del_flag_=1 WHERE id_ = #{id} es.del_flag_=0 AND es.tenant_id_ = #{tenantId} AND FIND_IN_SET(#{subjectList}, es.subject_list_) AND (es.id_=#{search} OR es.song_name_ LIKE CONCAT('%', #{search}, '%'))