and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} id, category_id, name, create_time, start_time, end_time, attend_count, attention_count, read_count, award_name, attend_type content delete from cms_topic where id = #{id,jdbcType=BIGINT} delete from cms_topic SELECT LAST_INSERT_ID() insert into cms_topic (category_id, name, create_time, start_time, end_time, attend_count, attention_count, read_count, award_name, attend_type, content) values (#{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{attendCount,jdbcType=INTEGER}, #{attentionCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{awardName,jdbcType=VARCHAR}, #{attendType,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR}) SELECT LAST_INSERT_ID() insert into cms_topic category_id, name, create_time, start_time, end_time, attend_count, attention_count, read_count, award_name, attend_type, content, #{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{attendCount,jdbcType=INTEGER}, #{attentionCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{awardName,jdbcType=VARCHAR}, #{attendType,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR}, update cms_topic id = #{record.id,jdbcType=BIGINT}, category_id = #{record.categoryId,jdbcType=BIGINT}, name = #{record.name,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, start_time = #{record.startTime,jdbcType=TIMESTAMP}, end_time = #{record.endTime,jdbcType=TIMESTAMP}, attend_count = #{record.attendCount,jdbcType=INTEGER}, attention_count = #{record.attentionCount,jdbcType=INTEGER}, read_count = #{record.readCount,jdbcType=INTEGER}, award_name = #{record.awardName,jdbcType=VARCHAR}, attend_type = #{record.attendType,jdbcType=VARCHAR}, content = #{record.content,jdbcType=LONGVARCHAR}, update cms_topic set id = #{record.id,jdbcType=BIGINT}, category_id = #{record.categoryId,jdbcType=BIGINT}, name = #{record.name,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, start_time = #{record.startTime,jdbcType=TIMESTAMP}, end_time = #{record.endTime,jdbcType=TIMESTAMP}, attend_count = #{record.attendCount,jdbcType=INTEGER}, attention_count = #{record.attentionCount,jdbcType=INTEGER}, read_count = #{record.readCount,jdbcType=INTEGER}, award_name = #{record.awardName,jdbcType=VARCHAR}, attend_type = #{record.attendType,jdbcType=VARCHAR}, content = #{record.content,jdbcType=LONGVARCHAR} update cms_topic set id = #{record.id,jdbcType=BIGINT}, category_id = #{record.categoryId,jdbcType=BIGINT}, name = #{record.name,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, start_time = #{record.startTime,jdbcType=TIMESTAMP}, end_time = #{record.endTime,jdbcType=TIMESTAMP}, attend_count = #{record.attendCount,jdbcType=INTEGER}, attention_count = #{record.attentionCount,jdbcType=INTEGER}, read_count = #{record.readCount,jdbcType=INTEGER}, award_name = #{record.awardName,jdbcType=VARCHAR}, attend_type = #{record.attendType,jdbcType=VARCHAR} update cms_topic category_id = #{categoryId,jdbcType=BIGINT}, name = #{name,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, start_time = #{startTime,jdbcType=TIMESTAMP}, end_time = #{endTime,jdbcType=TIMESTAMP}, attend_count = #{attendCount,jdbcType=INTEGER}, attention_count = #{attentionCount,jdbcType=INTEGER}, read_count = #{readCount,jdbcType=INTEGER}, award_name = #{awardName,jdbcType=VARCHAR}, attend_type = #{attendType,jdbcType=VARCHAR}, content = #{content,jdbcType=LONGVARCHAR}, where id = #{id,jdbcType=BIGINT} update cms_topic set category_id = #{categoryId,jdbcType=BIGINT}, name = #{name,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, start_time = #{startTime,jdbcType=TIMESTAMP}, end_time = #{endTime,jdbcType=TIMESTAMP}, attend_count = #{attendCount,jdbcType=INTEGER}, attention_count = #{attentionCount,jdbcType=INTEGER}, read_count = #{readCount,jdbcType=INTEGER}, award_name = #{awardName,jdbcType=VARCHAR}, attend_type = #{attendType,jdbcType=VARCHAR}, content = #{content,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=BIGINT} update cms_topic set category_id = #{categoryId,jdbcType=BIGINT}, name = #{name,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, start_time = #{startTime,jdbcType=TIMESTAMP}, end_time = #{endTime,jdbcType=TIMESTAMP}, attend_count = #{attendCount,jdbcType=INTEGER}, attention_count = #{attentionCount,jdbcType=INTEGER}, read_count = #{readCount,jdbcType=INTEGER}, award_name = #{awardName,jdbcType=VARCHAR}, attend_type = #{attendType,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT}