insert into t_cms_vote (content,flag,number,createtime,publisher,xh)
values (#{content,jdbcType=VARCHAR},#{flag,jdbcType=INTEGER},#{number,jdbcType=VARCHAR},
#{createtime,jdbcType=TIMESTAMP},#{publisher,jdbcType=VARCHAR},#{xh,jdbcType=INTEGER})
insert into t_cms_vote (content,flag,number,createtime,publisher,xh)
values
(#{vote.content},#{vote.flag},#{vote.number},#{vote.createtime},#{vote.publisher},#{vote.xh})
delete from t_cms_vote
where vote_id = #{vote_id,jdbcType=INTEGER}
delete from t_cms_vote
where flag = #{vote_id,jdbcType=INTEGER}
update t_cms_vote set number = number+1 where vote_id = #{vote_id,jdbcType=INTEGER}