id, title, pic, sort, activation, pk, red_option, blue_option, end_time, examine, examine_num, red_ticket, blue_ticket, admin_id, create_time,lead, red_desc, blue_desc,pk_vote_num SELECT LAST_INSERT_ID() insert into topic (title, pic, sort, activation, pk, red_option, blue_option, end_time, examine, examine_num, red_ticket, blue_ticket, admin_id, create_time, lead, red_desc, blue_desc,pk_vote_num) values (#{title,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{activation,jdbcType=INTEGER}, #{pk,jdbcType=INTEGER}, #{redOption,jdbcType=VARCHAR}, #{blueOption,jdbcType=VARCHAR}, #{endTime,jdbcType=VARCHAR}, #{examine,jdbcType=INTEGER}, #{examineNum,jdbcType=INTEGER}, #{redTicket,jdbcType=INTEGER}, #{blueTicket,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{lead,jdbcType=LONGVARCHAR}, #{redDesc,jdbcType=LONGVARCHAR}, #{blueDesc,jdbcType=LONGVARCHAR},#{pkVoteNum,jdbcType=INTEGER}) SELECT LAST_INSERT_ID() insert into topic title, pic, sort, activation, pk, red_option, blue_option, end_time, examine, examine_num, red_ticket, blue_ticket, admin_id, create_time, lead, red_desc, blue_desc, pk_vote_num, #{title,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{activation,jdbcType=INTEGER}, #{pk,jdbcType=INTEGER}, #{redOption,jdbcType=VARCHAR}, #{blueOption,jdbcType=VARCHAR}, #{endTime,jdbcType=VARCHAR}, #{examine,jdbcType=INTEGER}, #{examineNum,jdbcType=INTEGER}, #{redTicket,jdbcType=INTEGER}, #{blueTicket,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{lead,jdbcType=LONGVARCHAR}, #{redDesc,jdbcType=LONGVARCHAR}, #{blueDesc,jdbcType=LONGVARCHAR}, #{pkVoteNum,jdbcType=INTEGER}, update topic title = #{title,jdbcType=VARCHAR}, pic = #{pic,jdbcType=VARCHAR}, sort = #{sort,jdbcType=INTEGER}, activation = #{activation,jdbcType=INTEGER}, pk = #{pk,jdbcType=INTEGER}, red_option = #{redOption,jdbcType=VARCHAR}, blue_option = #{blueOption,jdbcType=VARCHAR}, end_time = #{endTime,jdbcType=VARCHAR}, examine = #{examine,jdbcType=INTEGER}, examine_num = #{examineNum,jdbcType=INTEGER}, red_ticket = #{redTicket,jdbcType=INTEGER}, blue_ticket = #{blueTicket,jdbcType=INTEGER}, admin_id = #{adminId,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, lead = #{lead,jdbcType=LONGVARCHAR}, red_desc = #{redDesc,jdbcType=LONGVARCHAR}, blue_desc = #{blueDesc,jdbcType=LONGVARCHAR}, where id = #{id,jdbcType=INTEGER} update topic set title = #{title,jdbcType=VARCHAR}, pic = #{pic,jdbcType=VARCHAR}, sort = #{sort,jdbcType=INTEGER}, activation = #{activation,jdbcType=INTEGER}, pk = #{pk,jdbcType=INTEGER}, red_option = #{redOption,jdbcType=VARCHAR}, blue_option = #{blueOption,jdbcType=VARCHAR}, end_time = #{endTime,jdbcType=VARCHAR}, examine = #{examine,jdbcType=INTEGER}, examine_num = #{examineNum,jdbcType=INTEGER}, red_ticket = #{redTicket,jdbcType=INTEGER}, blue_ticket = #{blueTicket,jdbcType=INTEGER}, admin_id = #{adminId,jdbcType=INTEGER}, create_time = #{createTime,jdbcType=TIMESTAMP}, pk_vote_num = #{pkVoteNum,jdbcType=INTEGER}, where id = #{id,jdbcType=INTEGER} delete from topic where id = #{id,jdbcType=INTEGER}