select user_id, post_id, hospital_id from hospital_user_post
insert into hospital_user_post
user_id,post_id,hospital_id,#{userId},#{postId},#{hospitalId},
update hospital_user_post
post_id = #{postId},hospital_id = #{hospitalId},
where user_id = #{userId}
delete from hospital_user_post where user_id = #{userId}
delete from hospital_user_post where user_id in
#{userId}
insert into hospital_user_post(user_id, post_id) values
(#{item.userId},#{item.postId})
delete from hospital_user_post where user_id=#{userId}