select id,xndm, stu_year_name,module_tags, start_time, end_time, del_flag,status, create_by, create_time, update_by, update_time from srs_stu_year UPDATE srs_stu_year SET module_tags = CASE WHEN module_tags = #{tag} THEN NULL WHEN module_tags LIKE concat(#{tag}, ',%') THEN REPLACE(module_tags, concat(#{tag}, ','), '') WHEN module_tags LIKE concat('%,', #{tag}) THEN REPLACE(module_tags, concat(',', #{tag}), '') WHEN module_tags LIKE concat('%,', #{tag}, ',%') THEN REPLACE(module_tags, concat(',', #{tag}, ','), ',') ELSE module_tags END WHERE module_tags = #{tag} OR module_tags LIKE concat(#{tag}, ',%') OR module_tags LIKE concat('%,', #{tag}) OR module_tags LIKE concat('%,', #{tag}, ',%') insert into srs_stu_year id, xndm, stu_year_name, module_tags, start_time, end_time, `status`, del_flag, create_by, create_time, update_by, update_time, #{id}, #{xndm}, #{stuYearName}, #{moduleTags}, #{startTime}, #{endTime}, #{status}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update srs_stu_year xndm = #{xndm}, stu_year_name = #{stuYearName}, module_tags = #{moduleTags}, start_time = #{startTime}, end_time = #{endTime}, del_flag = #{delFlag}, `status` = #{status}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where id = #{id} delete from srs_stu_year where id = #{id} delete from srs_stu_year where id in #{id}