insert into tb_notice(
title,
content,
create_time,
user_id,
filepath
)values(
#{title},
#{content},
now(),
#{userId},
#{filepath}
)
delete from tb_notice where id = #{id}
update tb_notice set
title=#{title},
content=#{content},
create_time=#{createTime},
user_id=#{userId},
filepath=#{filepath}
where id = #{id}
update tb_notice
title = #{title},
content = #{content},
create_time = #{createTime},
user_id = #{userId},
filepath = #{filepath},
where id = #{id}
and id = #{id}
and title = #{title}
and content = #{content}
and user_id = #{userId}
and filepath = #{filepath}