update catalog set state = 0 where channelId=#{channelId} insert into catalog (channelId, name,sort) values (#{channelId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER} ) update catalog name=#{name}, where id = #{id}