insert into comment (co_page_path, co_content, co_date, co_pid, co_from_author_id, co_to_author_id, co_status)
VALUES (#{pagePath}, #{content}, now(), #{pid}, #{fromUser.id}, #{toUser.id}, 0)
update comment
set co_content=#{content}
where co_id = #{id}
update comment
set co_status = 3
where co_id = #{id}
update comment
set co_status = 3
where co_page_path = #{path}