insert into fav(favid , usersid , articleid , addtime ) values(#{favid} , #{usersid} , #{articleid} , #{addtime} ) update fav set usersid=#{usersid} , articleid=#{articleid} , addtime=#{addtime} where favid=#{favid} delete from fav where favid = #{favid}