INSERT INTO t_vote (activity_id, sequence, title, content)
VALUES (#{activityId}, #{sequence}, #{title}, #{content})
UPDATE t_vote
SET activity_id = #{activityId},
sequence = #{sequence},
title = #{title},
content = #{content}
WHERE id = #{id}
UPDATE t_vote
activity_id = #{activityId},
sequence = #{sequence},
title = #{title},
content = #{content},
WHERE id = #{id}
DELETE
FROM t_vote
WHERE id = #{primaryKey}