update tz_user_addr set common_addr = 0 where user_id = #{userId} update tz_user_addr set common_addr = 1 where user_id = #{userId} and addr_id = #{addrId}