Superconductivity in the mean-field anyon gas