We compared the clinical characteristics of vaccinated and non-vaccinated Omicron patients in order to provide a reference for the clinical diagnosis and treatment of coronavirus disease 2019 (COVID-19). This study included 360 patients diagnosed with COVID-19. The serum immunoglobulin G (IgG) and serum immunoglobulin M (IgM) antibody levels of the patients and the duration of virus shedding were analyzed according to age, gender, vaccine dose, and the time from the most recent vaccination to the onset of Omicron infection. Age (OR = 0.974), days from last vaccination to onset ≤ 180 days (OR = 4.409), and booster dose of the vaccine (OR = 4.999) were protective factors associated with patients who were IgG antibody positive. The duration of virus shedding in IgG -antibody-positive patients was 9 (8-11) days; and this was significantly lower than that in IgG-antibody-negative patients, who had virus shedding duration of 10 (8-12) days (p < 0.05). Booster immunizations could increase IgG-antibody in patients who have already been infected with the Omicron variant and enhance immune protection. In addition, COVID-19 vaccination may shorten the duration of virus shedding.